They are in a database, in separate columns, and I am familiar with the DISTINCT function. Those get me pretty far, but my final destination would be to know the fewest number of distinct sources that contain all of the keys. I'm not sure if SQL has some set fuctions that can do this - and even if it does, that I have the right grasp of the problem to apply them. :-/