database - How to extract out all multiple ID's of the same person in MYSQL -
say given data-model different entities connected each other one-many or many-one relationships. suppose find songs done artist akon. how can use sequel query find that. has multiple id's in the entity used find song did. how can use sql find out.
say given id's (1,10002,2908) not know those, know name 'akon' helps find different id's , songs connected id's
hm sounds simple join query.
select a.songid db.songs inner join db.artists b on b.artistid=a.artistid b.artistname='akon'
is you´re looking for?
Comments
Post a Comment