sql - Mysql query for selecting friends -


i trying solve "issue", still without success. i'd achieve is, create query select friends of specific actor. let's want list of first name, last name , age of jason statham's friends.

below image of tables. ps: tables correctly organized ? (especially foreign keys) in advance enter image description here

does you're looking for?

select  actors.first_name,         actors.last_name    actors   actors.login in (     select  friendslist.loginf        friendslist       friendslist.logina = 'xstad' ) 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -