difference between group clause and order clause



difference between group clause and order clause..

Answer / sathy

group by clause is used to group the column values using
corresponding column values
group by cannot use where condition, instead of where it can
use having which has same function as where

order by is used to order the records in order ie.,
ascending or descending.
order by can use where, but not having having is only for
group by.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

What do you mean by NOT NULL? When will you use it?

3 Answers  


How to resolve SQL Code -310. The db table feild is declared as Decimal(7,2).

2 Answers   IBM, Infosys,


What is IMAGECOPY ?

6 Answers  


Is db2 a programming language?

0 Answers  


What are the disadvantages of using VARCHAR?

3 Answers  






I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!

17 Answers   KNIT, Tech Mahindra,


If a non-DB2 program calls a DB2 program, the calling program's name will be there in SYSIN of IKJEFT01 and the plan name will be that of the called program. But is a bind needed or a plan has to be created for the non-DB2 program also?

1 Answers   RBS,


What error I will get if my select query gives multiple row while executing a Cobol-DB2 program.How can I solve it without using a cursor.

4 Answers   Cap Gemini, Verizon,


ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE

0 Answers  


How does db2 sample database connect?

0 Answers  


When one binds a PACKAGE ( of a plan ) what package information is stored and where it is stored?

3 Answers  


How we create a tables in DB2 ?Previously client has using 7 letters for user id,now he wants to increase the letters from 7 to 12 for user id.How we can do it?

6 Answers   Wipro,


Categories