i want to do one thing on my mysql DB.
I have two tables:
first_table:
| article | longtext | YES | | NULL | |
| article_id | int(11) | YES | | NULL | |
Second_table:
| id | int(11) |
| name | longtext |
| commit_date | date |
When first_table.article_id = second_table.id, then article = name.
I want to select article and article_id from first table and sort them by commit_date (correct for every record), which is in the second table.
How to do it?
Take a look at the following query, should do what you want :