I would like to write a SQL query to retrieve all transactions (DOCUMENT_NUM) that contain at least two products from a selection list ("A", "B", "C")
select TRANSACTION_DAY, DOCUMENT_NUM, PRODUCT_CODE, PRODUCT_DSCR, QTY_SOLD, NET_SALES
from main.sales
where PRODUCT_CODE in ("A", "B", "C")
If I use the IN operator, the query may return transactions with one product from the list, but I want at least two.
Is it possible to achieve that?