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...

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


Please Help Members By Posting Answers For Below Questions

What is blob datatype?

1134


What is a cursor and what are the steps need to be taken?

1208


What are the limitations of check constraint?

1035


What is ASM (Automatic Storage Management) in Oracle?

1204


Explain the use of consistent option in exp command.

1075


Explain the use of compress option in exp command.

1026


How to export data with a field delimiter?

1046


What are operators in oracle?

1064


How many types of cluster table in Oracle?

1036


How to put more than 1000 values into an oracle in clause?

1035


What is a nvl function?

1038


Explain oracle 12c new features for developers?

1063


Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

2071


What is oracle and what are its different editions?

1073


How many categories of data types in oracle?

1035