I am trying to find rows that have duplicate values, but only based off of a select number of columns, not a single column or the entire row. For example, if my table looked like this:
ID Address State Name
-------------------------------
0 7 Brown NY John
1 3 Red WX Jane
2 7 Brown WX Ted
3 7 Brown NY Fred
My question would be:
Find all ID's for rows where the row's Address and State field matched another row's Address and State field.
The answer to this query would be:
ID Address State Name
------------------------------
0 7 Brown NY John
3 7 Brown NY Fred
Any Ideas?
Suggestions:
How to select multiple columns values same rows from single table
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…