Компьютерные сети
- 1 ответ
- 0 вопросов
0
Вклад в тег
<?php while (true) {} ?>
SELECT productID
FROM
(SELECT productID, count(productID) AS cnt
FROM
(SELECT DISTINCT productID, optionID FROM tablname) as a1
WHERE optionID IN (6,7)
GROUP BY user_id) AS a2
WHERE cnt=2