SELECT * FROM tablaA a WHERE a.activo = 1 UNION SELECT * FROM tablaB b WHERE b.activo = 1 ORDER BY fechaAlta desc