ORDER BY Timestamp tra 2 tabelle
Salve a tutti,
ho 2 tabelle in cui sono presenti un timestamp
Tabella 1
actor.last_update TIMESTAMP
Tabella 2
ptgweb.`update` TIMESTAMP
quello che vorrei ottenere e' fare il confronto dei TIMESTAMP delle 2 tabelle e' ordinarli per ordine di ultimo aggiornamento
o questa query ma il risultato non e' come mi aspettavo
Codice PHP:
SELECT
actor.actor_id,
actor.last_update,
ptgweb.actor_id,
ptgweb.`update`
FROM
actor
INNER JOIN ptgweb ON actor.actor_id = ptgweb.actor_id
ORDER BY
TIMESTAMP ( actor.last_update, ptgweb.`update` )
LIMIT 10
https://i.imgur.com/9IOtGYU.png