📜  包含某些多个 id 的 sql 值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.299000             🧑  作者: Mango

代码示例1
SELECT i.Container
FROM Inventory i
WHERE i.Sku in (S1, S2)
GROUP BY i.Container
HAVING COUNT(DISTINCT i.Sku)=2