Hello,
I have a sales table:
SalesId | LeadId | ProductId
------------------------------------------
1 | 1 | 1
-----------------------------------------
2 | 1 | 2
-----------------------------------------
3 | 2 | 1
-----------------------------------------
4 | 3 | 2
-----------------------------------------
5 | 2 | 2
I want to return a query that filter, lets say by productId = 1, that will return all leadId that dont have productId = 1
so the resulte of our table (if productId = 1) is:
leadId
-------
3
2
thank you !!