Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete duplicate records
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Delete duplicate records
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01627249
Message ID:
01627249
Views:
47
Hi,

I have a table where I want to delete ONE of two duplicate records based on the fact that values in two fields are the same. For example:
FIELD1    FIELD2
1              Entry ABC
1              Entry ABC
2              Entry 123
2              Entry 123
and so on. There are other fields in this table but they should not be considered when deleting one record. How can you do it in T-SQL?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform