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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -