Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group By

Status
Not open for further replies.

VBXL

Programmer
Joined
Jul 10, 2001
Messages
198
Location
GB
Hi,

When i run a group by statement

i.e group by substring(example,1,3), example2

it still lists duplicate values ie.

example example2
aaaaa 22
aaaaa 345
bbbbb 111
bbbbb 323
bbbbb 5566

Any way around this. I just want to group by the first 6 char's of 'example'

VBXL
 
You are grouping by 2 fields, so they are not duplicates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top