Viewing 2 posts - 1 through 2 (of 2 total)
Hi,
Identity has been set (-1, 1) that means first row will start with -1 and there will be 1 increment in subsequesnt rows so the answer should be
-1, 0,...
June 28, 2010 at 1:02 am
#1185546
When you cast(blank('') as int), it returns 0. so when you compare 0 with 0 nullif returns NULL.
declare @a smallint
set @a= 0
select nullif(@a,0)
Ans: NULL
June 22, 2010 at 4:18 am
#1183195