Hi,
I recently came cross some unexpected output in a query ( for me at least)
The statement
isnull(PAYMENT.sb_health_fund_code,isnull(replace(PAYMENT.SB_CHEQUE_DRAWER,',',' '), '')),
was returning "DEPOSIT HU"
as the health fund code was null, however the cheque drawer contained "DEPOSIT HUNTER MUTUAL LI K A BOLTON"
It turns out that the health fund code field is a VARCHAR(10) field, and the output was only showing the first 10 characters.
Is this normal behaviour in T-SQL? I cant recall seeing it before.
Cheers,