There are 3 types of checksum:
- checksum: Is not case sensitive.
- binary_checksum: Is case sensitive.
- checksum_agg: Aggregates the results to check table as a whole.
example:
SELECT *
FROM [Person].[Contact] a
inner join [Person].[Contact] b
on a.ContactID = b.ContactID
WHERE BINARY_CHECKSUM(a.[NameStyle],a.[Title],a.[FirstName]) = BINARY_CHECKSUM(b.[NameStyle],b.[Title],b.[FirstName])
No comments:
Post a Comment