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

is it necessary to write group by and order by clause together

Answer Posted / madhav

yes,
select deptno,sum(sal) from emp group by deptno;
(it displays ascending order)
when we want to display the descending order,we need order
by clause and group clause.
select deptno,sum(sal) from emp group by deptno order by
deptno desc
(it displays the descending order)

Is This Answer Correct ?    9 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a database?

1090


How is use pl and sql?

1071


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1006


What is posting?

1041


What's the difference between a primary key and a clustered index?

994


Which data dictionary views have the information on the triggers that are available in the database?

1246


explain mysql aggregate functions. : Sql dba

996


Is sql the best database?

984


In what condition is it good to disable a trigger?

1023


How to run sql commands in sql*plus?

1191


What does partition by mean in sql?

969


What are all the common sql functions?

1038


Where is sql database stored?

991


What are different types of statements supported by sql?

1172


How do I count records in sql?

1018