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

7. Repeat query (7) but also display all clients who have never ordered anything.

1 Answers   Wipro,


Hi Guys,I have completed my B.com Commerc in the year 2005 and MBA finance in 2008(Correspondance).And I have 3+yrs exp in Accounting and Finance feild.I have worked for TCS for 1.8yrs as Project manage office as a enduser in oracle ERP module.Currently working as Project Adminstartor for CSC.I have joined in Oracle financial classes and I am through with that subject.So my concern is After learning oracle, am in dilemma that will i be eligible to get job in oracle or not?Please advice or Give me suggestions.To kick start my career as fresher in Oracle

0 Answers  


What is Undo Management Advisor in Oracle?

0 Answers   MCN Solutions,


What is an Oracle index?

0 Answers  


What is the maximum number of CHECK constraints that can be defined on a column ?

3 Answers  


How to use "while" statements in oracle?

0 Answers  


What is difference between truncate and delete?

0 Answers  


How do I uninstall oracle 11g?

0 Answers  


How to export data to a csv file?

0 Answers  


What is the difference between translate and replace?

0 Answers  


What is an oracle?

0 Answers  


How to rename an index in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • 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)