DELETEFROMtableaWHEREa.ROWIDIN(SELECTridFROM(SELECTROWID rid,DENSE_RANK()OVER(PARTITIONBYunique_columnsORDERBYROWID)dupFROMtable)WHEREdup>1); It uses the same concept as ROW_NUMBER, but uses the DENSE_RANK function. There are some differences between using these functions, but in this case, t...
DENSE_RANK() : Start ranking by a no. of my choice and not by 1 ... Can I? DENY UPDATE/DELETE/INSERT on specific columns to ALL users Detect Current IDENTITY_INSERT Settings? Determine if #TempTable has rows Determine if the database is in Single User or Multi-User Deterministic GUID...
DENSE_RANK() : Start ranking by a no. of my choice and not by 1 ... Can I? DENY UPDATE/DELETE/INSERT on specific columns to ALL users Detect Current IDENTITY_INSERT Settings? Determine if #TempTable has rows Determine if the database is in Single User or Multi-User Deterministic GUID...
DENSE_RANK() : Start ranking by a no. of my choice and not by 1 ... Can I? DENY UPDATE/DELETE/INSERT on specific columns to ALL users Detect Current IDENTITY_INSERT Settings? Determine if #TempTable has rows Determine if the database is in Single User or Multi-User Deterministic GUID...