I have 3 tables:
- Movie (MovieID, MovieName, etc.)
- Genre (GenreID, GenreName, etc.)
- MovieGenre (mapping table: MovieID & GenreID).
Basically, a movie can have multiple genres.
I've been struggling to find a query for a table that lists all movies and all of its genres. I need this to load data to a ASP.Net GridView via DataTable, SqlDataAdapter.
EX:
1 Guardians of the galaxy Action, Adventure, Sci-Fi
2 Iron Man Action, Adventure, Fantasy
I'm new to SQL and have searched for similar questions, found some answers, but it still didn't work.
create table ....andinsert into ...) , the output you get and what is not satisfying about it. You might also want to take the tour. - Yunnosch