IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is GROUP BY and ORDER BY Clause in DB2


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shrikanth_m
Currently Banned

New User


Joined: 19 Jan 2007
Posts: 5
Location: bangalore

PostPosted: Sun Jan 21, 2007 9:32 pm
Reply with quote

Can some one explain me what is GROUP BY and ORDER BY Clause in DB2, i would be greateful if i get with proper example,.

Thanks in advance!
Regards
Srikanth icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jan 21, 2007 9:59 pm
Reply with quote

Hello,

GROUP BY specifies a summary query.
ORDER BY identifies what sequence rows should be returned.

I'd recommend you download the IBM manuals (free) and/or purchase a book on SQL (wide price range - amazon.com has many).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Rotate partition-logical & physic... DB2 0
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
Search our Forums:

Back to Top