Vytvořte dílčí dotaz, který vrátí motory se všemi 3 modely (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)
Vytvořte dílčí dotaz, který vrátí motory se všemi 3 modely (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)