何が違うの?
右:
select distinct maker, price from product
inner join printer
on product.model = printer.model
where color = 'y' and price <= (select min(price) from printer where color = 'y')
違う:
select distinct maker, price from product
inner join printer
on product.model = printer.model
where color = 'y' and price <= all (select distinct price from printer where color = 'y')
「min」を使用するとパフォーマンスが向上することはわかっています。しかし、結果の何が間違っていて何が違うのか、誰か説明できますか?
テーブル構造:
Product(maker, model, type)
Printer(code, model, color, type, price)
ナイケル