I'm using oracle database and trying to delete duplicate records from that. For the same I've written a below query but getting this error
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
Its giving red indicator under outer keyword in Left outer join in query.
Query:
DELETE FROM Duplicate LEFT OUTER JOIN (
SELECT MIN(RowId) as RWID, STUDENT_NAME, STUDENT_ROLLNO, STUDENT_SUBJECT
FROM Duplicate
GROUP BY STUDENT_NAME, STUDENT_ROLLNO, STUDENT_SUBJECT
) as KeepRows ON
Duplicate.RowId = KeepRows.RWID
WHERE KeepRows.RWID IS NULL;