SELECT DISTINCT AccountKey
FROM TABLE
WHERE (ProductGroup = 'A' AND ProductVersion = 13)
OR (ProductGroup != 'A' AND ProductVersion = 19)
1
solved SQL: write nested query in SQL [closed]
SELECT DISTINCT AccountKey
FROM TABLE
WHERE (ProductGroup = 'A' AND ProductVersion = 13)
OR (ProductGroup != 'A' AND ProductVersion = 19)
1
solved SQL: write nested query in SQL [closed]