Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 pass parameters to procedures?

973


What is set verify off in oracle?

1030


What are dml statements in oracle?

1040


How to use "out" parameter properly?

1023


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

916


What is ordinary table in oracle?

1074


What types of joins are used in writing subqueries?

937


How to create a testing table in oracle?

945


What are the various types of snapshots ?

971


What is partitioned table in Oracle?

1104


What is merge in oracle?

995


Query to retrieve record for a many to many relationship ?

2458


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

2574


How to retrieve the count of updated rows?

1054


Briefly explain what is literal? Give an example where it can be used?

973