Link to home
Start Free TrialLog in
Avatar of TomNorton
TomNorton

asked on

T-SQL Difference Function Parameter Order

I have been doing some work De-Duplicating contacts using the Difference function in SQL server 2000 and have come across on odd result. You receive a different return value depending on the order in which you supply the parameters e.g

Difference('A','Andy') = 3
Difference('Andy','A') = 2

Does anyone know why this is?
ASKER CERTIFIED SOLUTION
Avatar of MikeWalsh
MikeWalsh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial