I have the following query, however I wanna know how I can rewrite this without the use of DISTINCT and only using NOT EXIST.
SELECT DISTINCT r.sid FROM record r