I have the following query
SELECT matricula_veh as 'Identificacion',
concat(marca_veh,' ',modelo_veh) as 'InfoName',
'Vehiculo' KindData
FROM vehiculos
UNION
SELECT id_per as 'Identificacion',
concat(nom_per,' ',ape_per) as 'InfoName',
'Usuario' KindData
FROM personas
UNION
SELECT id_per_ad as 'Identificacion',
matricula_veh_ad as 'InfoName',
'AdminVehiculo' KindData
FROM admin_vehiculos
UNION
SELECT id_reg as 'Identificacion',
nomc_pas_reg as 'InfoName',
'RegistroViaje' KindData
FROM registro_viaje
It works perfect, but I would like you to be able to organize all the results chronologically, in each table there is a column in which a TIMESTAMP is printed. How can I make the query then?
The organization must be global, not table by table.