I have a single CSV file with following columns:
ActorName, Address, City, Movies
ActorName column has duplicate entries because there are multiple movies that actor acted in. Eg. Actor Clint Eastwood is listed 3 times because movies column has 3 movies he acted in.
Issue I am having is how to create a junction table or relation. If i create ActorID first then ActorName will still have duplicates. And if i create Movies table first and move Movies column, then delete the duplicates from Actor table then how will I associate movie with the actor?
An example. Loading the data into temporary table then copying into working tables.
DEMO fiddle