DELETE E
FROM [SampleDB].[dbo].[Employee] E
INNER JOIN
(
SELECT *,
RANK() OVER(PARTITION BY firstname,
lastname,
country
ORDER BY id) rank
FROM [SampleDB].[dbo].[Employee]
) T ON E.ID = t.ID
WHERE rank > 1;
Code Example |
---|
Sql :: SQL Greater than () |
Sql :: oracle create index if not exists |
Sql :: triggers in mysql example |
Sql :: rename temp table column name in sql server |
Sql :: oracle merge insert if not exists |
Sql :: sql primary key |
Sql :: pl sql if boolean |
Sql :: sql where clause |
Sql :: mysqldump password in file |
Sql :: oracle convert hours to minutes |
Sql :: postgres sql alter table delete row |
Sql :: foreign key in sql dbms |
Sql :: mysql calcular idade |
Sql :: select all columns except one sql |
Sql :: mysql not |
Sql :: insert into table sql |
Sql :: postgresql sum |
Sql :: Ms Sql set us timezone |
Sql :: hour differeence in mysql |
Sql :: how to create local postgres database |
Sql :: sql query for displaying age from oldest to youngest |
Sql :: SQL Addition Operator |
Sql :: sum function in sql |
Sql :: xampp reset mysql |
Sql :: google sheets data validation custom formula filter |
Sql :: mysqlimport |
Sql :: mysql split explode |
Sql :: mysql view |
Sql :: recourse record format |
Sql :: run eroku psql |