Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



hi friends, I have a table A col as status|NUM and value as open |1 open |2 close |3 clo..

Answer / 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

More Oracle General Interview Questions

when i run my query on yesterday it is fast but today it is slow why?

1 Answers  


How to connect ms access to oracle servers?

0 Answers  


Explain temporal data types in oracle

0 Answers  


What is the purpose of tables, private synonyms and public synonyms in Oracle?

0 Answers   HCL,


How to display the hierarchy of employee and managers without using connect by prior.

1 Answers  






What is the difference between implicit index and explicit index?

2 Answers   TCS,


When does a Transaction end ?

2 Answers  


How to create a new view in oracle?

0 Answers  


State and explain about oracle instance?

0 Answers  


A USER HAVING CREATE SESSION PREVILAGE CAN ALTER PASSWORD/CHANGE PASSWORD?

2 Answers  


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

0 Answers  


What is the difference between hot backup and cold backup in oracle?

0 Answers  






Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (509)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)