N
select q.maker, q.price
from (
Select p.maker, t.price, row_number() over (order by t.price) rw
from printer t
join product p on t.model=p.model
where color='y') q
where rw = 1
Size: a a a
N
select q.maker, q.price
from (
Select p.maker, t.price, row_number() over (order by t.price) rw
from printer t
join product p on t.model=p.model
where color='y') q
where rw = 1
F
F
ЕА
F
ЕА
А
ЕА
А
VS
Select top 1 with ties p.maker, t.price
from printer t
join product p on t.model=p.model
where color='y'
order by t.price asc
VS
F
F
SELECT top 1 with ties max(maker) as maker, min(price) as price
from printer t
join product p on t.model=p.model
where color='y'
group by maker, price
order by t.price asc
F
VS
F