|
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!
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.