declare @a bit ,@b bit select @a = 0 ,@b = -1 select result = 'Exactly one is null? ' + case coalesce(abs(sign(@a)),-1) * coalesce(abs(sign(@b)),-1) when -1 then 'TRUE' else 'FALSE' end
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.