I'm working with a DB that was poorly designed.
I have the following fields in a table called user_main:
user_id (unique, autoincrement), user_first_name, user_last_name, user_password, user_work_id, ...
The user_work_id should be unique, but it's not... I've found a few users that have the same user_work_id
I need help creating a query to retrieve the user_id's of the users that share their user_work_id with other users, but I don't know where to start?
Any suggestions?
Any help will be really appreciated!