Hello everyone.
I have a VIEW which returns (amongst others) a category code and a price. I would like to have a new column which returns a new category code if the price is above 1000.
e.g.
Is it possible to do this with a DECODE statement somehow? I realise that DECODE is an equality operator, but I wondered if anyone could think of a clever way to evaluate whether (price < 1000) and return a boolean or something to help me create this new column.
Thank you.
I have a VIEW which returns (amongst others) a category code and a price. I would like to have a new column which returns a new category code if the price is above 1000.
e.g.
Code:
Code Price New Code
3103 50 3103
3103 1200 5005
3103 1400 5005
3103 6 3103
Is it possible to do this with a DECODE statement somehow? I realise that DECODE is an equality operator, but I wondered if anyone could think of a clever way to evaluate whether (price < 1000) and return a boolean or something to help me create this new column.
Thank you.
