So I 've got many tables for a movies database (Films, FilmPersons, Persons, PersonEmails, Roles, FilmGenres, Genres).
I want to output all films that exist with as many information as possible. For example one row would be:
Title | Date | Budget | Actor | Director | Genre |
Alien | 1923 | 3322 | someActor | someDirector | Scifi
SELECT Films.Title, Films.Date, Films.Budget, Persons.FirstName, Persons.LastName, Roles.RoleName, Genres.Name
FROM Films INNER JOIN
FilmPersons ON Films.FilmID = FilmPersons.FilmID INNER JOIN
Persons ON FilmPersons.PersonID = Persons.PersonID INNER JOIN
Roles ON FilmPersons.RoleID = Roles.RoleID INNER JOIN
FilmGenres ON Films.FilmID = FilmGenres.FilmID INNER JOIN
Genres ON FilmGenres.GenreID = Genres.GenreID
But the above result don't show all the information about the movie, how to change the SQL so that I can select all fields?