:

SQL:

SELECT * FROM A UNION SELECT * FROM B;