Forudsat at de har de samme kolonner, så brug union all
:
select m.*
from mountains m
where m.trip_id = 74
union all
select f.*
from forests f
where f.trip_id = 74;
Forudsat at de har de samme kolonner, så brug union all
:
select m.*
from mountains m
where m.trip_id = 74
union all
select f.*
from forests f
where f.trip_id = 74;