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 / guest

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 ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of control file?

1173


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

1286


Can select statements be used on views in oracle?

1082


Whether any commands are used for months calculation? If so, what are they?

1137


Can the query output be sorted by multiple columns in oracle?

1052


How to rollback the current transaction in oracle?

1104


What is analyze command used for?

1122


What are the varoius components of physical database structure of oracle database?

1039


I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.

2342


How do I recompile a procedure in oracle?

1018


11. Display the client number and name and the client number and name of the person who referred that client.

2388


Explain compound trigger in oracle?

1088


What is an oracle database?

1105


How do I connect to oracle database?

1198


WHAT IS ecc 6.0

2201