Inilah salah satu opsi dengan union all
pernyataan:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer
Inilah salah satu opsi dengan union all
pernyataan:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer