Her er en mulighed med en union all
erklæring:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer
Her er en mulighed med en union all
erklæring:
select idoffer, min(price)
from (
select idoffer, price from tablea
union all
select idoffer, price from tableb
) t
group by idoffer