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 are the restrictions on external table columns?
What is a lookup table in oracle?
What is the difference between $oracle_base and $oracle_home?
What is an oracle database?
What is dynamic proxy?
What is enter substitution variable in oracle?
Explain about functional dependency and its relation with table design?
What is the difference between pre-select and pre-query?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?
Explain about your project and its relation to the current job position you are applying to?
What is the data type of dual table?
How to pass parameters to procedures in oracle?
How to experiment a data lock in oracle?
What is Data Dictionary Cache in Oracle?
How to retrieve data from an explicit cursor?