On my system I have 3 tables:
-Table Movie - A movie featuring multiple artists
-Tabela Artist
-Table Participates Movie - This table contains the ID's of the movie and artist table.
Then when I want to select a movie with all your artists, I do the following:
select ar.*, f.* from filme as f inner join participa_filme as pf on pf.id_filme = f.id_filme inner join artista as ar on ar.id_artista = pf.id_artista
Here he returns me, all the titanic movie artist
My question is, do I have to return only one titanic movie record with all its artists? without creating a line for every movie artist.