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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rename an existing table?

778


How to connect to the server with user account: sys?

762


How to drop a tablespace?

731


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

824


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1774


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1736


What are the different types of synonyms?

809


What is the difference between online and offline backups?

733


How can I combine multiple rows into a comma-delimited list in oracle?

784


How can we view last record added to a table?

787


How to increment dates by 1 in oracle?

757


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2946


Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..

1856


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1688


Explain oracle left join with an example?

757