MySQL Forums
Forum List  »  Newbie

Re: Processing from tables
Posted by: Peter Brawley
Date: September 01, 2017 10:05AM

The best way would be to combine the 20 tables into one with an overall PK, then write a simple select...where...order by <date_column> desc query.

If there really is a compelling reason to keep these 20 tables separate, union them all in a subquery then write that same query as the outer query.

Options: ReplyQuote


Subject
Written By
Posted
September 01, 2017 03:36AM
Re: Processing from tables
September 01, 2017 10:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.