18. Display the clientno and total value for all orders
placed by that client. Output the result in the following
format: Client <clientno> has placed orders to the value of
<total value>

Answers were Sorted based on User's Feedback



18. Display the clientno and total value for all orders placed by that client. Output the result in..

Answer / girija.112

i forgot to login thats why i have posted it once again

ANS:
select 'Client '||nvl(tochar(client_no,'unknown') ||' has
placed orders to the value of '|| nvl(sum(orders),0) as
order_summary
from order_table
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 0 No

18. Display the clientno and total value for all orders placed by that client. Output the result in..

Answer / guest

ANS:
select 'Client '||nvl(tochar(client_no,'unknown') ||' has
placed orders to the value of '|| nvl(sum(orders),0) as
order_summary
from order_table
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 ?    0 Yes 1 No

Post New Answer

More Oracle General Interview Questions

what is the syntax of DELETE command?

8 Answers  


What is object data modeling?

0 Answers  


What is a nvl function? How can it be used?

0 Answers  


when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.

0 Answers  


How do I manually uninstall oracle client?

0 Answers  


How to display employee records who gets more salary than the average salary in the department?

0 Answers  


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

0 Answers  


Explain oracle instance.

0 Answers  


how to get last monday of a month?

2 Answers   Multifonds,


What is a proxy object?

0 Answers  


1) Does oracle have any table which contain all the exceptions and it's code internally?

0 Answers   CTS,


what are the database links ?

2 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)