MySQL Forums
Forum List  »  Newbie

Re: select latest records by date and location
Posted by: Active RFID
Date: July 11, 2015 01:16AM

Thanks Rick

Unfortunately it seems that sub queries can only work with an outer select that uses only one table (as 1 outer variable) whereas to construct my original 'single' table I select from 3 other tables (and I wanted to include any MAX sub query in that somewhere).

i.e. Select from 3 tables to get one table (as one or more variables), then find the MAX date for each unique name and location.

It may be possible with multiple sub-queries but this is beyond me.

Regards
Active

Options: ReplyQuote




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.