Hi,
I'm trying to remove duplicates from my database table (vacancy).
Currently using the following SQL statement:
SELECT title, jobref, location, description, salary, apply FROM vacancy WHERE jobref IN (SELECT DISTINCT jobref FROM vacancy)
However, this still brings back the duplicates, each statement works on its own (I.e. DISTINCT brings back unique values for that column, and SELECT * brings back all rows & Columns) so i'm not entirely sure why it's not working.
If there's a simpler way of doing this i'm open to trying it out.
Cheers