If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Group By 1?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-04, 16:09
simsjr simsjr is offline
Registered User
 
Join Date: Aug 2004
Posts: 19
Group By 1?

What does "GROUP BY 1" do in Informix?

I'm used to grouping by column names.
Reply With Quote
  #2 (permalink)  
Old 10-27-04, 17:32
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
group by 1 will group by the first field in the select clause

if you say select * ... group by 1
this will group by the first field in the table
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On