hi friends,
I have a table A
col as
status|NUM
and value as
open |1
open |2
close |3
close |3
the O/P should be
open|close
1 |3
2 |4
Answer Posted / ajit
select decode ( status, 'open', num ) open,
decode ( status, 'close', num ) close
from A;
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is ADDM Advisor in Oracle?
How to update values in a table in oracle?
when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.
What privilege is needed for a user to create views in oracle?
Explain the use of indexes option in exp command.
What is the Tune Query
How to call a stored function with parameters?
How to shutdown your 10g xe server from command line?
Explain about functional dependency and its relation with table design?
What is SQL access advisor in Oracle?
What is the best way to do multi-row insert in oracle?
I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.
How can we find out the current date and time in oracle?
When do you get a .pll extension in oracle? Explain its importance
Please explain joins in oracle?