Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Problems with duplicates

$
0
0
HiI am having some problems coding with sql. Very new at this. I'm using sql server 2014.Anyway, I want to clean my table which have seveal duplicates in the name column. ID Tr Namn Säsong Lag date land1 44 Aaron Downey 2008-2009 DET 1974-08-27 Shelburne 2 44 Aaron Downey 2001-2002 CHI 1974-08-27 Shelburne 3 44 Aaron Downey 2006-2007 MTL 1974-08-27 Shelburne 4 9 Adam Graves 1998-1999 NYR 1968-04-12 Tecumseh 5 18 Adam Hall 2001-2002 NSH 1980-08-14 Kalamazoo I want to get rid of those duplicates and save one, to have this:ID Tr Namn Säsong Lag date land1 44 Aaron Downey 2008-2009 DET 1974-08-27 Shelburne 4 9 Adam Graves 1998-1999 NYR 1968-04-12 Tecumseh 5 18 Adam Hall 2001-2002 NSH 1980-08-14 Kalamazoo Can anyone help? I'd really appreciate it./F

Viewing all articles
Browse latest Browse all 3145

Trending Articles