Professional Documents
Culture Documents
Five SQL Interview Questions
Five SQL Interview Questions
-----------------------
1.IDENTIFYING DUPLICATES AND DELETEING DUPLICATES
To delete the duplicate records we need to first find all the distinct
records. In duplicate records, every data is the same except row_id
because row_id is the physical address that the record occupies. So we find
the distinct row id where data are distinct in each column and then delete all the
rows with row_id that are not in the above query.