MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help in Group by function

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
spalanis
Beginner


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Tue Nov 18, 2008 11:07 am    Post subject: Help in Group by function Reply with quote

If my select statement has :
SELECT
B.POL_NO,
B.POL_EFF_DT,
B.POL_EXP_DT,
A.INSD_NM,
B.TTL_NET_PRM,
B.ISSUING_CO_NO,
B.PRODUCER_NO,
B.REGION_CD,
D.COMPOSITE_LOSS_IN,
(SUBSTR(C.EXTRACT_DATA_TX,125,2)) AS GARSTATE,
COUNT(SUBSTR(C.EXTRACT_DATA_TX,31,4)) AS VEHCOUNT


then what should be my Group by fields???????

Please note: My last two fields are extracts from same field.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 18, 2008 12:47 pm    Post subject: Reply with quote

spalanis,


Please search before posting . Check this link for an example

http://www.mvsforums.com/helpboards/viewtopic.php?t=5855&highlight=group+substr

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group