codice:
select ida as idA_B,nomeA as nomeA_B from tabA
union all
select idb,nomeB from tabB
order by idA_B,nomeA_B