यहां union all
के साथ एक विकल्प दिया गया है कथन:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer
यहां union all
के साथ एक विकल्प दिया गया है कथन:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer