Hi All,
I have another statement help request for you SQL gurus out there.
I have this data:
FLD1 FLD2 FLD3 FLD4 - FLD14
GWLL 90111 12011031051 (XXX - XXX)
RYND 8725 12011031911 (XXX - XXX)
HKUT 47663 12011031581 (XXX - XXX)
GWLL 90111 12011031611 (XXX - XXX)
HKUT 47663 12011031251 (XXX - XXX)
I need to sort the data with field 3 first, then group field 1/field 2 together. So the data should look like this when sorted and ordered:
GWLL 90111 12011031051 (XXX - XXX)
GWLL 90111 12011031611 (XXX - XXX)
HKUT 47663 12011031251 (XXX - XXX)
HKUT 47663 12011031581 (XXX - XXX)
RYND 8725 12011031911 (XXX - XXX)
I have tried a group and order clause, but I can't seem to quite get the data to display properly. The other problem is that there are another 10 or so fields I need to fetch as well, but I don't want to add them to the GROUP BY clause.
It's probably something pretty obvious, but I'm just not getting it this morning...
Any ideas?
Thanks.
/b;
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Assistant Mgr. - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-5029
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.simcoeparts.com
Please consider the environment. Don't print this e-mail unless you really need to.
The information contained in this communication is confidential and intended only for the use of those to whom it is addressed. If you have received this communication in error, please notify me by telephone (collect if necessary) and delete or destroy any copies of it. Thank you!
As an Amazon Associate we earn from qualifying purchases.