write a query to remove duplicate records without using primary key column?
Answers were Sorted based on User's Feedback
Answer / 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 |
Can an automatic recovery be initiated by a user?
Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?
What are the diifferences between the ms sql server vs mysql?
Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?
What is the process of indexing?
How to generate random numbers with the rand() function in ms sql server?
Define cross join in sql server joins?
Can group functions be used in the order by clause in ms sql server?
What is SubQuery in SQL Server 2008
What types of replication are supported in sql server?
Explain indexing and what are the advantages of it?
do views contain data ?