Hello,
There is an online store, in the basket there is a selection of goods by ID, and it is necessary that in the basket some goods are not more than 2 in number, and thus in 1 basket there can be several products with 1 ID.
But in the sample can not be done:
SELECT * FROM goods WHERE id IN (101842,101842,101838,101840) But there are only 3 elements in the sample, how can you form a query so that all 4 elements are in the sample?