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

Check if two rows have a different value in a specific column

$
0
0
Hi guys! I hope i am right in this sub! I have googled my question, but everything i can find is code to check if there are two rows with THE SAME value in a column. So here is what i need. I have huge export files in a DB and i need to check if there are any datasets that have the same value in the first column, but a different in another one, via a query of course.Like this: ID IS NULL1 12 13 01 0The expected ID i get as a result of my query should be 1 in this case. I hope you get what my problem is.Thanks in advance!.penny

Viewing all articles
Browse latest Browse all 3145

Trending Articles