×
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.
SELECT LGSESN, count(*) as NumLGSESN FROM anloga
WHERE LGSESN NOT LIKE '%ARCHIVE%'
GROUP BY LGSESN
order by LGSESN
-----Original Message-----
From: fbocch2595@xxxxxxx [mailto:fbocch2595@xxxxxxx]
Sent: Friday, February 22, 2013 9:56 AM
To: midrange-l@xxxxxxxxxxxx
Subject: SQL Break/total question
Hi Folks, this statement runs fine;
SELECT LGSESN, LGDATE FROM anloga
WHERE LGSESN NOT LIKE '%ARCHIVE%'
order by LGSESN
but if I want to only have each LGSESN output a single line with the total number of hits for all the LGSESN's, what's the syntax for that?
Is there any tip sheets or manuals for learning SQL?
Thanks, Frank
--
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.