For example:
declare @bitHaveRows bit
select @bitHaveRows = count(*)
from table
where (predicate)
Are there any functions I can call on this line:
select @bitHaveRows = count(*)
to assign this bit a value of 0 if there are no rows, or 1 if there are one or more rows?