I have a table that is like this:
user_num, attending, processed
3243, 1, 0
5821, 1, 1
5821, 1, 0
5821, 1, 0
1482, 0, 1
What I need to do is add a constriction to user_num to not allow duplicates, but before I can do so, I need to delete all duplicates for that column. I see TONS of examples online for deleting duplicate rows, but I am struggling to find a place where I can just get rid of all duplicates for a certain column, so in this example I would like the outcome to be.
user_num, attending, processed
3243, 1, 0
5821, 1, 1
1482, 0, 1
Honestly I don't care if 5821 has a 0, 0 or a 1, 0 or a 0, 1 or a 1, 1 because every time they go to the page it copies their user settings from another table. I just need a script where I don't have any duplicates of a particular column (user_num) but I still need all the columns in the table.