delete more than one id from SQL Server -


how delete rows duplicate values "driverid"?. want remove duplicated entries if each record. please see below image, want query how this.

enter image description here

use exists()

delete yourtable p exists(select 1 yourtable pp              p.driverid = pp.driverid                , p.id > pp.id) 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -