remove duplicate from different columns in mssql 2000

Posted by user312549 on Stack Overflow See other posts from Stack Overflow or by user312549
Published on 2010-04-09T06:43:42Z Indexed on 2010/04/09 6:53 UTC
Read the original article Hit count: 248

Filed under:

i have table :

number city1 city2 mentions
1 a b 5
1 b a 5
1 c d 2
1 d c 2

what i need is to remove duplicate records, such as a, b equal to b,a became :

number city1 city2 mentions
1 a b 5
1 c d 2

any clue for me ? thanks before :)

© Stack Overflow or respective owner

Related posts about sql-server