3つのモデルすべて(1081,1082,1083)を持つエンジンを返すサブクエリがあります。
select color
from car
where engine in (
select engine
from car
where model in (1081,1082,1083)
group by engine
having count(distinct model) = 3)
3つのモデルすべて(1081,1082,1083)を持つエンジンを返すサブクエリがあります。
select color
from car
where engine in (
select engine
from car
where model in (1081,1082,1083)
group by engine
having count(distinct model) = 3)