Why checksum() returns the same value for different string
问题 The following SQL and its result shows the different string got the same checksum result. Why? select str , binary_checksum(str) binary_checksum, checksum(str) checksum, hashbytes('md5', str) md5 from ( values ( '2Volvo Director 20'), ( '3Volvo Director 30'), ( '4Volvo Director 40') ) t ( str ) str binary_checksum checksum md5 ------------------ --------------- ----------- -------------------------------------------- 2Volvo Director 20 -1356512636 -383039272 0xB9BD78BCF70FAC36AF14FFF589767278