I have been working on normalizing a bunch of table that I have. The problem is that now that I have all the data in a bunch of different tables, when I join them on a select I am not getting exactly what I want.
example
the problem is I took all the actors out of the movie table and moved them to an actor table and created a table inbetween (is there a special name for this table?) them to join the movie table and actor table together sort of like this
before
movie
--------
movieid
title
actors (comma deliminated list)
after
movie
-------
movieid
title
actor
-------
actorid
firstname
lastname
actor_in_movie
--------------
actorid
movieid
so now when i do a select on movies and join them to the actors i get many records back for one movie, one record for each actor. (i completely understand why this is happening, now at least
So here is my question, is there a way to return just one movie record, with one column that has all the actors in it?
jgroove
example
the problem is I took all the actors out of the movie table and moved them to an actor table and created a table inbetween (is there a special name for this table?) them to join the movie table and actor table together sort of like this
before
movie
--------
movieid
title
actors (comma deliminated list)
after
movie
-------
movieid
title
actor
-------
actorid
firstname
lastname
actor_in_movie
--------------
actorid
movieid
so now when i do a select on movies and join them to the actors i get many records back for one movie, one record for each actor. (i completely understand why this is happening, now at least
jgroove