difference between group clause and order clause

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does db2 mean?

584


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

644


Why do we use cursor?

597


What is bind and rebind in db2?

646


How to find schema of a table in db2?

570






Explain various types of locks in db2?

689


What is with ur in db2?

753


what is a corelated subquerry?

657


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1897


What is ibm db2 used for?

598


Can we insert update delete in view?

571


What is db2 purescale?

545


What is database alias db2?

600


Explain the contents that are a part of dclgen.

655


What does db2 plan contain?

573