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

How do I access sql anywhere database?

950


What is the max nvarchar size?

943


What is a pdo connection?

1000


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1117


How to display the records between two range in Oracle SQL Plus?

1131


How many types of relationship are there?

1016


How do you delete a table?

1048


What is a subquery in sql?

1014


what are all the common sql function? : Sql dba

1039


How do you bind variables in pl sql?

1071


what are different types of collation sensitivity? : Sql dba

1054


Explain the difference between drop and truncate commands in sql?

1018


what is the difference between char_length and length? : Sql dba

1024


What is materialized view. What are different methods of refresh?

1366


Explain some predefined exceptions.

1016