Hi Doug,

I've done this sort of thing before with SQL.  Something along the lines of:

SELECT ...list_of_fields_that_make_unique_ID... , count(a.*)
  FROM ...file_name... a
  GROUP BY ...list_of_fields_that_make_unique_ID...
  HAVING count(a.*) > 1


Eric DeLong
Sally Beauty Company
MIS-Sr. Programmer/Analyst
940-898-7863 or ext. 1863

-----Original Message-----
From: Doug Johnson [mailto:djohnson@Univbkstr.com]
Sent: Friday, September 28, 2001 10:29 AM
To: 'midrange-l@midrange.com'
Subject: query question


I need to find out if records are being posted twice to an inventory
file-and query is all that I have to work with.
Is there a way to use query to select records from a file based on the fact
that the data in several fields is identical to the data in those fields in
another record when in fact that combination of fields should be unique in
the file?



System Administrator
The University Book Store
711 State Street
Madison, WI 53703

608-257-9479 (fax)

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

This thread ...

Return to Archive home page | Return to MIDRANGE.COM home page