Viewing 15 posts - 451 through 465 (of 658 total)
I agree with Tom - questions like this serve as a good warning of those who have so little going on in their lives that they find things like the...
November 1, 2011 at 3:22 am
Thomas Abraham (10/31/2011)
As I write, the answers are running 52% correct. Kind of makes me wonder why 48% can't use Google.
I didn't use Google, as I didn't know and...
October 31, 2011 at 6:11 am
One of the most bizarre questions I can remember!
October 31, 2011 at 3:19 am
I'm with those who took "which executes first" to mean "which completes its execution first" rather than "which starts its execution first".
But I suspect I'd have got it wrong even...
October 27, 2011 at 9:01 am
Hugo Kornelis (10/24/2011)Either the question's author was not aware of the simpler methods (in which case this question was a learning experience for everyone), or he was deliberately trying to...
October 24, 2011 at 7:05 am
Or if col1 isn't a bit:
UPDATE table1 SET col1 = ~cast(col1 as bit) where col1 in (0,1)
(no I know you wouldn't do it this way, but then you wouldn't do...
October 24, 2011 at 2:43 am
Or:
SELECT
CASE when Col1 is null then 'Is Null'
else case col1
WHEN '0' THEN 'Is Zero'
WHEN '1' THEN 'Is One'
WHEN '2' THEN 'Is Two'
END
end
FROM
(
SELECT...
October 10, 2011 at 7:51 am
Sean Lange (10/10/2011)[hrThis works except you can't differentiate between null and empty strings because your isnull will now treat them both the same. In some cases this is ok but...
October 10, 2011 at 7:39 am
I've a feeling the behaviour was different in a previous version of SQLServer, as I think we were bitten by it when code that worked, stopped working. I don't have...
October 10, 2011 at 3:19 am
Sneaky!
I've been bitten too many times by this sort of thing when debugging applications to be fooled though 🙂
September 27, 2011 at 3:28 am
Good question - shame there weren't more possible answers given, I only had to look at the first two, and would probably have got at least one of the others...
September 26, 2011 at 2:44 am
SQL Kiwi (9/20/2011)
But who wants to be average?
I dream of being average, but have quite a way to go still to achieve it 🙂
September 21, 2011 at 4:00 am
I was expecting to see "undetermined, could be either" as an option so guessed (wrongly as usual).
Learned something new - not sure how useful it is to know, but these...
September 20, 2011 at 9:40 am
Viewing 15 posts - 451 through 465 (of 658 total)