I have a number of pages that read information from different tables in the database to create the page. All these tables have a 'created' and 'updated' field which is populated with timestamps when records are created or updated.
SELECT updated FROM tableA ORDER BY updated DESC
SELECT updated FROM tableB ORDER BY updated DESC
SELECT updated FROM tableC ORDER BY updated DESC
I want to display when the page was last updated, so need to pull the 'updated' fields from the tables used on that page, sort them in desc order.
Would "SELECT updated FROM tableA, tableB, tableC ORDER BY updated DESC" work?
Is there a MySQL function that could perform this action, or is there another way to do it?