Ive got two tables
USERID USERNAME
1 Tom
2 Dick
LOCATIONID USERID LOCATION LISTORDER
1 1 UK a
2 1 Scotland b
3 2 UK e
4 2 USA b
I want the query to return all the user and their 1st location depending on the LISTORDER
It should return
1 Tom UK
2 Dick USA
Can someone help with writing the query please?
Thanks
USERID USERNAME
1 Tom
2 Dick
LOCATIONID USERID LOCATION LISTORDER
1 1 UK a
2 1 Scotland b
3 2 UK e
4 2 USA b
I want the query to return all the user and their 1st location depending on the LISTORDER
It should return
1 Tom UK
2 Dick USA
Can someone help with writing the query please?
Thanks