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

Explain the difference between sap and oracle?

0 Answers  


How to drop an existing table in oracle?

0 Answers  


What is a connect identifier?

0 Answers  


Give the constructs of a package, function or a procedure.

0 Answers  


 How to use an oracle sequence generator in a mapping?

0 Answers   Informatica,






What is open database communication (odbc) in oracle?

0 Answers  


Can we protect our pl/sql source code?

0 Answers  


Explain overloading. Can functions be overloaded?

0 Answers  


I need to get the values of the previous quarter.how to do this?eg: if my cuurent month is may i need to get the datas of the month jan,feb,march.Can it be done in oracle.I tried with date function q but for the month jan its not retriving the previous quarter(oct-dec).how to solve this.plpz anyone help me?

2 Answers   Philips,


What is a Data File ?

1 Answers  


when loggined as SYSTEM,how to display all the users of database using sql query?

2 Answers  


WHAT IS ecc 6.0

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)