select pole1, poleN, 1 as priznak from Table1 union select pole1, poleN, 2 as priznak from Table2 order by priznak