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
How do you get nicely formatted results from an oracle procedure that returns a reference cursor?
is there a tool to trace queries, like profiler for sql server?
What is an oracle function?
How to add a new column to an existing table in oracle?
What is the parameter mode that can be passed to a procedure?
Describe the types of sub query?
How do I spool in oracle?
Whats the benefit of dbms_stats over analyze?
What is an oracle transaction?
How to define a record variable to store a table row?
What is a package in oracle?
How to define a data field as not null?
What would you do with an in-doubt distributed transaction?
What is private procedure oracle?
Why we use bulk collect in oracle?