I need to load some test data into the Channel field on my Account table. The Channel can be one of 10 different values, so I thought I\'d randomly assign the Channel one o
Related to second question,
CHECKSUM(NewId()) will return negative results sometimes, which is not match with any of the case conditions. If a negative number is divided with any number the result will be negative. Execute the following query,
declare @v nvarchar(50) = newid()
select CHECKSUM(@v),@v,CHECKSUM(@v) % 10