Ok, I feel like this should be obvious, but I’m not seeing it. I have a tagging system with two tables (say A and C) related (many-many) through a 3rd table (say B).
I want to select all the unique rows in A that meet a criteria based on a field in C. That is to say, if the same row in A is tagged with multiple tags in C that meet my criteria, I don’t want multiple rows back–just the single row from A.
So I want all rows in A that have tags that meet my criteria based on a field in C. But I never want a row duplicated in A, even if it has multiple tags that meet the criteria.
1 Answer