Hello, there is a related table with movie_name fields | seller_name | unique_id. This table was obtained by combining the sellers and movies tables across the unique_id field. In this table, I have several identical id in the field unique_id. It is specially made. I need to select everyone who has the same id. Here is what I tried:
SELECT p.seller_name , s.movie_name FROM sellers p INNER JOIN movies s ON p.unique_id = s.unique_id HAVING COUNT(*) > 1; But this query generally produces an incorrect result; it does not display fields with the same id. Tell me how to create a request then?