MySQL Forums
Forum List  »  Newbie

Re: Query table A based on Table B
Posted by: Bob Pieciak
Date: February 24, 2016 03:11PM

I know is OLD, but it's what I'm stuck with.


select allt.seq_num, allt.location, allt.locationid
from t140
join allt on t140.ndx=allt.locationid and allt.location='t140'
where t140.allocated=1;


Looks right. What would the output be if a row in t140 was allocated but there was no corresponding entry in allt?

Options: ReplyQuote


Subject
Written By
Posted
February 24, 2016 01:32PM
Re: Query table A based on Table B
February 24, 2016 03:11PM


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.