Välj en UNION
alla kolumner utom PK:erna ger dig bara distinkta rader:
insert into new_table (<non-pk columns>)
select <non-pk columns> from tableA
union
select <non-pk columns> from tableB
Obs:union
tar bort dubbletter.
Välj en UNION
alla kolumner utom PK:erna ger dig bara distinkta rader:
insert into new_table (<non-pk columns>)
select <non-pk columns> from tableA
union
select <non-pk columns> from tableB
Obs:union
tar bort dubbletter.