That probably equal to the count of all records. You want something like
SELECT COUNT(DISTINCT(ihorno)) from x where y




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Hoteltravelfundotcom
Sent: Wednesday, December 30, 2015 11:08 AM
To: Midrange Systems Technical Discussion
Subject: is this count going to be distinct?

I am just checking against the order file.
I am getting something like 12000 for a count and I kind of doubt that
for
one day of orders. I need to show how many orders we shipped for the
year
eventually.

SELECT DISTINCT count(*) ihorno FROM CA1665AFCV/SROISH T01 WHERE IHIDAT
= 20151229
--
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.


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].