MySQL Forums
Forum List  »  Newbie

Re: Query problem : get users and a list of other info in another table
Posted by: Peter Brawley
Date: October 08, 2018 09:55AM

Is this what you mean?

select u.id, u.name, l.lat, l.log, l.time
from users u
join locations l on u.id=l.user_id
order by u.name;

Options: ReplyQuote


Subject
Written By
Posted
Re: Query problem : get users and a list of other info in another table
October 08, 2018 09:55AM


Sorry, only registered users may post in this forum.

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.