MySQL Forums
Forum List  »  Newbie

Re: Join or subquery
Posted by: Peter Brawley
Date: August 05, 2020 12:16PM

Will you actually use all info from each row of both tables? If not, change * to the list of columns needed.

A join would be simple, something like ...

select ...
from table1
join table2 on table2.bscra_id = table1.id
order by table1.end_date desc;

Options: ReplyQuote


Subject
Written By
Posted
August 05, 2020 10:09AM
Re: Join or subquery
August 05, 2020 12:16PM
August 06, 2020 03:08AM
August 06, 2020 11:50AM


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.