I have a table with three columns: actor, movie and role. How do I form a relational algebra query to find actors who played the same role in multiple movies? I.e. the rows would have the same name and role but different movie.
I've thought of finding actors that have played the same role multiple times by first getting a count of the number of roles and then selecting rows which have count > 1. How to proceed?