× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.