Write a query to delete duplicate records in SQL SERVER
Answer Posted / chandran
There is a table like this: tablename: example
Name Age
chandran 23
ranjith 24
chandran 23
In this table the name:chandran and age:23 are the
duplicate records .so we need to delete this using this
sql statements
delete from example group by name,age having count>1
| Is This Answer Correct ? | 37 Yes | 107 No |
Post New Answer View All Answers
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
Define self join?
Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What is the web service used for reporting services?
Do you know what is blocking?
How to change parameter value inside the report?
How can you insert values in multiple rows using one Insert statement?
What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?
1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?
How many replicas are maintained for each sql azure db?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
What is coalesce and check constraint in sql server?
What is star, snowflake and star flake schema? : sql server analysis services, ssas
Explain differences between web edition and business edition?
When would you use sql joins?