Viewing 10 posts - 1 through 10 (of 10 total)
How about storing them as positives as tinyint but interpret as negatives with computed columns, view, user stored procedure etc.?
November 27, 2018 at 12:19 am
If you accept to have differences in one row you could do something like:SELECT T.*, S.*
FROM #Targer AS T
INNER JOIN #Source AS S
WHERE EXISTS...
February 17, 2017 at 12:58 pm
What about solving a sudoku where there are no combos? Like this one?
May 24, 2016 at 4:06 pm
Variable IS NOT converted to nchar. It is the other way arround. The literal is converted to char and thus the value set to variable is dependent on databse collation
Try...
May 6, 2016 at 4:04 am
Hey Kevin! This is really great stuff pointed there! Nice idea to take care of Sudoku in SQL.
I tried your solution on the harder-hardest-sudoku-ever and it seems to not...
April 6, 2016 at 4:23 am
Thanks for the valuable comment. However, I didn't meant nor said that the behavior I observed is standard or repeatable. My goal was to just show how awkward...
June 28, 2015 at 12:21 pm
g.britton (6/24/2015)
Nakul Vachhrajani (6/24/2015)
Divide by 0 is not causing a problem in the SELECT clause because of the presence of EXISTS. You can have...
June 27, 2015 at 4:33 pm
Jeff Moden (6/27/2013)
This does an "old fashioned unpivot" of the data (CBAC but still better than RBAR)
Could you please explain the CBAC acronym used in this context? Thanks in advance!
May 10, 2015 at 1:37 am
Nice. But I would use if @binary like '%[^0^1]%' or @binary = '' or @binary is null
return -1
It will prevent from inputing any non-binary string
November 28, 2014 at 9:27 am
This book is great! I hope to win some.
--Example of some index statistics
select o.name, ColNo, InclColNo,
rank() over (order by ColNo desc) as RnkColNo,
rank() over (order by InclColNo desc) as...
December 9, 2013 at 3:48 am
Viewing 10 posts - 1 through 10 (of 10 total)