#1  
Old 10-09-1999, 08:51 PM
P.Lian
Guest
 
Posts: n/a
WRKQRY - How to select distinct records

The File I need to extract is as follows

12345 ABC 12456
12345 ABC 43535
12345 ABC 5367437
555 CDE 775757
555 CDE 9499494
555 CDE 94994

How do I select only one record of each of 12345 ABC and 555 CDE instead of duplicate records
  #2  
Old 11-05-1999, 05:07 AM
Steve Canter
Guest
 
Posts: n/a
Use a Summary Query

Define a report break containing both fields. Then in Select Output Type, choose Summary Only. You will only see one occurrance for each distinct break level. The one downside to this is that Query/400 will insert a blank line in between each row. If you want to print out the data without the blank lines, you can run the output of this query to a temporary file and then query the temporary file seperately.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:15 AM.