Viewing 15 posts - 2,311 through 2,325 (of 3,348 total)
By the way, for anyone who wants to try how these variations cann affect the result set, here is the set of test data I used when prepaaring this question:
CREATE...
December 6, 2011 at 4:03 am
honza.mf (12/6/2011)
I don't understand how the condition AND o.OrderDate > DATEADD(month, -4, CURRENT_TIMESTAMP)
in SQL Query #4 works. For me it seems it is to...
December 6, 2011 at 4:01 am
Thanks, all, for your kind words. It;s always good to know that my questions are appreciated.
Tom Brown (12/6/2011)
However my...
December 6, 2011 at 2:39 am
Thanks, all, for the kind words. I figured a not-too hard yes/no question would make for a nice change of pace. (It being scheduled on a friday is not my...
December 2, 2011 at 3:25 pm
Carla Wilson-484785 (12/1/2011)
I really don't understand why someone would want to do a comparison that is based on the data type.
Well, I guess the issue is that the SQL Server...
December 1, 2011 at 8:15 am
KWymore (11/30/2011)
I have not yet seen sql variants actually used in production but then again, we have very few 2008 instances up and running.
There is no connection between sql_variant and...
November 30, 2011 at 8:49 am
Gerardo Galvan Castro (11/30/2011)
November 30, 2011 at 7:59 am
Removed.
I must learn to read first, write later. Sorry!
November 30, 2011 at 5:57 am
Tom, please double check the question. The SQL text contains the string constant 'v3 = v2' as one of the CASE results. The correct answer option reads v2 = v3....
November 30, 2011 at 5:56 am
Toreador (11/30/2011)
Hugo Kornelis (11/30/2011)
To me, it was immediately obvious that the v3=v2 / v2=v3 error was a mistake made when entering the question and not a deliberate trick.
Same here, but...
November 30, 2011 at 3:54 am
Good question. Thanks, Tom! 😉
To me, it was immediately obvious that the v3=v2 / v2=v3 error was a mistake made when entering the question and not a deliberate trick.
November 30, 2011 at 3:25 am
codebyo (11/29/2011)
INSERT INTO #ATable
(
Col1,
Col2,
Col3
)
VALUES
(
2 AS Col1,
1 AS Col2,
3 AS Col3
);
I'm not sure if it's a good way of doing it but it...
November 29, 2011 at 7:58 am
Nice question. Not terribly hard, but interesting. It could have been made a bit harder by omitting the column list in the INSERT:
INSERT INTO #ATable
SELECT 2 AS col2, 1 AS...
November 29, 2011 at 5:23 am
roger.plowman (11/28/2011)
Using single quotes for both strings and dates is a brain-dead design decision--period.
Technically, T-SQL is not using single quotes for both strings and dates. It uses single quotes for...
November 28, 2011 at 7:15 am
Viewing 15 posts - 2,311 through 2,325 (of 3,348 total)