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

What happens to the data files if a tablespace is dropped?

1071


How do we get field details of a table?

986


How do I connect to oracle?

1037


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

1032


What is a proxy class?

1062


What is an oracle and why it is used?

1161


What is the recommended interval at which to run statspack snapshots, and why?

2928


How can I create database in oracle?

1036


How to turn on or off recycle bin for the instance?

1094


How to shutdown your 10g xe server from command line?

1097


Explain oracle instance.

1187


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

1018


What do you mean by a tablespace?

1045


How many categories of data types?

1003


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2975