How would I query only certain rows without including dupes when I am comparing 3 different columns? For example, there are 6 columns and I want to query for id, type, and date but since my db record dupes, I do not want to include any row that has the same type AND subid AND date.