write a query to remove duplicate records without using primary key column?
Answer Posted / mathanrathinam
delete tmp from(select col1,col2,row_number over(partition by col1,col2 order by col1,col2) rownum from tablename) tmp
where rownum >1
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
What is similarity and difference between truncate and delete in sql?
How can we determine what objects a user-defined function depends upon?
What is an etl file?
What is standby servers? Explain types of standby servers.
What is meant by Active-Passive and Active-Active clustering setup?
Explain what is the function of sql server agent windows service?
How to set a database state to offline in ms sql server?
What is self contained scalar sub query?
What is the command to change the recovery model?
what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration
How to replace the Query Result 'Null Value' with a text ?
How to transfer data from a cursor to variables with a "fetch" statement?
Explain foreign key in sql server?
What are scalar functions in sql?
Explain about link server in sql server?