所以我有这张表A:
color ID MODEL
-----------------------------
red | 10 | HONDA
blue | 10 | TOYOTA
red | 15 | ISUZU
red | 30 | MITSUBISHI
red | 5 | HONDA
blue | 5 | SUBARU
orange | 10 | HYUNDAI
black | 40 | CHRYSLER
yellow | 30 | DODGE--take note of this as i have another ID = 30
red | 10 | HONDA--
我希望获得与其他颜色不具有相同ID的红色和蓝色的所有型号。
所以我的预期结果是:
color ID
------------
red | 15
red | 30