Hale, Jim
Jim.Hale at FleetPride.com
Tue Mar 7 15:52:38 CST 2006
Assume a table with vendor, inv amt and check number. There may be multiple records for the vendor with the same check number. If I want to determine the total amt paid to a vendor and the number of checks written to him a simple groupby query will not do since the count function will count the number of occurrences not number of distinct checks. COUNT(DISTINCT(CHKNO) works in a pass through query on the AS400 but not in Jet SQL. What is the equivalent Jet SQL to determine the number of distinct checks written per vendor? TIA Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.