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
How do I find my oracle client driver version?
Explain about functional dependency and its relation with table design?
What are the benefits of ordbms?
How many file formats are supported to export data?
master table and child table performances and comparisons in Oracle ?
How to pass a parameter to a cursor in oracle?
Is oracle an open source?
How to start a specific oracle instance?
What do you understand by a database object? Can you list a few of them?
How to define a cusotmer as a supplier in ORACLE R12
How do I limit the number of rows returned by an oracle query after ordering?
interview questions with answer for cts
How to test null values?
What does sharding mean?
How to insert a new row into a table in oracle?