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

What is set verify off in oracle?

568


Describe varray?

580


Can you create a synonym without having a table?

547


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2173


Which is better Oracle or MS SQL? Why?

5429






Is a rollback possible to any savepoint?

554


Explain about the analyze command in oracle?

577


How to see free space of each tablespace?

585


How to count duplicated values in a column in oracle?

546


What are the roles of dba?

608


How to use "while" statements in oracle?

729


material view and view disadvantages?

633


What happens if variable names collide with table/column names?

578


What is the best way to do multi-row insert in oracle?

559


how the indexes are stored in the Oracle Database?

1734