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

Explain the use of indexes option in exp command.

1063


please explain.. DB architecture ...

1965


Assuming that you are an End User How to find that in the payment Batch some of the Invoice was  Missing To pay How to find That??

1666


How to call a sub procedure?

1034


Query to retrieve record for a many to many relationship ?

2456


What is raw datatype?

1075


What are the attributes of cursor?

987


What is the difference between $oracle_base and $oracle_home?

1026


What are the advantages of oracle?

960


Explain what are the advantages of views?

1012


How to define an anonymous block?

1071


What is oracle and what are its different editions?

1007


WHAT IS ecc 6.0

2099


what is dynamic SGA and static SGA

4325


How to assign a tablespace to a users in oracle?

989