4. Display the order number and client number from the ORDER
table. Output the result in the format. Client <clientno>
ordered <orderno>



4. Display the order number and client number from the ORDER table. Output the result in the format..

Answer / girija.112

select 'Client '|| nvl (to_char(client_no),'unknown') ||'
has placed order to the value of '|| nvl(sum(order_no),0)
order_summary
from order
group by client_no

OUTPUT...

ORDER_SUMMARY
---------------------------------------------------
Client unknown has placed order to the value of 200
Client 1006 has placed order to the value of 4
Client 1008 has placed order to the value of 0
Client 1004 has placed order to the value of 54
Client 1005 has placed order to the value of 450

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Oracle General Interview Questions

What is Hash Index?

1 Answers  


How to convert dates to characters in oracle?

0 Answers  


Why do we use bulk collect in oracle?

0 Answers  


How to change system global area (sga) in oracle?

0 Answers  


How to retrieve values from data fields in record variables?

0 Answers  






How do I use unicode codesets with the weblogic jdriver for oracle driver?

0 Answers  


How to start a new transaction in oracle?

0 Answers  


Where is the export dump file located?

0 Answers  


What do you mean by a deadlock?

0 Answers  


From the database level, how can you tell under which time zone a database is operating?

1 Answers  


Why do we use coalesce function in oracle?

0 Answers  


What is the relationship among database, tablespace and data file?

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 (510)
  • 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)