I looked through the posts and saw lots of queries to pull duplicate information, but how would you update a column to tag the dupes?
I want to do something like the below although I know this particular one doesn't work....
UPDATE [63805-06]
SET QUERY_ID = 'DUPES'
from [63805-06] A1, [63805-06] A2
WHERE A1.LASTNAME = A2.LASTNAME
AND A1.ADDRESS1 = A2.ADDRESS1
AND A1.ZIP = A2.ZIP
HAVING
count(*) > 1
I want to do something like the below although I know this particular one doesn't work....
UPDATE [63805-06]
SET QUERY_ID = 'DUPES'
from [63805-06] A1, [63805-06] A2
WHERE A1.LASTNAME = A2.LASTNAME
AND A1.ADDRESS1 = A2.ADDRESS1
AND A1.ZIP = A2.ZIP
HAVING
count(*) > 1