Filter Duplicate Values from List

Bill Norris

Active Member
Licensed User
Longtime User
I want to read the data from two fields of a table in the database into a list, then filter out any duplicate entries in the list so that all values in the list are unique. I know I can do this with a double loop but I'm wondering if there isn't a more elegant solution?
 

Bill Norris

Active Member
Licensed User
Longtime User
RE: Thanks

thanks -- wasn't even thinking about SELECT DISTINCT. I'm thinking now that if I use SELECT DISTINCT to populate the list with field1, then I can check each value in field2 against the list and only add if no match.
 
Upvote 0
Top