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 the string concatenation operator in oracle?
Can you drop an index associated with a unique or primary key constraint?
What are the various constraints used in oracle?
What is the exact use of Collections?
What is a subquery in oracle?
How to create an oracle database?
What is the recommended interval at which to run statspack snapshots, and why?
Explain a private synonyms?
what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?
What are the limitations of check constraint?
What are the common oracle dba tasks?
Explain a synonym?
Explain parameter file in oracle.
What is different types of joins?
How can we force the database to use the user specified rollback segment?