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>
Answer Posted / 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 |
Post New Answer View All Answers
What is an oracle transaction?
How to test null values?
What is meant by a deadlock situation?
Is primary key indexed by default in oracle?
How to get last row id?
Can sub procedure/function be called recursively?
What is an oracle tablespace?
Where are the settings stored for each instance in oracle?
How to select some columns from a table in oracle?
How to invoke the data pump export utility?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
Is the After report trigger fired if the report execution fails ?
How to add a new column to an existing table with a default value?
What is the difference between PFILE and SPFILE in Oracle?
How to revoke create session privilege from a user in oracle?