Viewing 15 posts - 361 through 375 (of 812 total)
Koen Verbeeck (3/7/2014)
Nice question, but I believe "not connected as sysadmin" is an equally correct answer though.ps: no actual connections to a certain Grant who is always ranting? 😎
From BOL:
The...
March 7, 2014 at 1:33 am
Hany Helmy (3/3/2014)
SELECT X AS 'Except'
FROM A
EXCEPT
SELECT Y
FROM...
March 3, 2014 at 3:22 am
Igor Micev (3/2/2014)
Question is identical with that of 2014/02/26.The answer is also identical.
Am I missing something?
+1
But where is EXCEPT-1?
Why, if the qotd is identical to that of 2014/02/26, somebody got...
March 2, 2014 at 11:46 am
Curious: the winner is?
"EXISTS" with absolute less reads.
SET STATISTICS IO ON
GO
SELECT DISTINCT x AS 'EXISTS'
FROM A
WHERE exists(SELECT...
February 26, 2014 at 8:36 am
Equivalent to:
SELECT X AS 'Intersecting'
FROM A
JOIN b ON b.y = a.x;
It's not equivalent, INTERSECT returns DISTINCT values.
SELECT DISTINCT X AS 'Intersecting'
FROM A
JOIN b ON b.y = a.x;
February 26, 2014 at 8:14 am
GO is NOT a statement, but a batch separator. It is recognized only by SSMS and you can change it. E.g. you can change with RUN_BABY.
This statement confirms it:
execute ('
SELECT...
February 25, 2014 at 12:57 am
Good question!
Thanks!
create database DEFAULT_DATABASE
This runs!
create database DELETE
This DOESN'T run!
You can use reserved words that stand for OPTIONS!
February 20, 2014 at 1:18 am
Thomas Abraham (2/19/2014)
If you want numbers for your records in a SELECT, why not use:
ROW_NUMBER ( ) OVER ( <partition_by_clause> <order_by_clause> )
in...
February 19, 2014 at 7:24 am
SQLRNNR (2/19/2014)
I wonder how many people have used identity in this way (select into...).
Just one per year!
😉
February 19, 2014 at 1:25 am
twin.devil (2/14/2014)
now who said sql server does not have a heart 😛
+1
😛
February 14, 2014 at 1:02 am
I also found this doc from MSDN that explains the answer
SSAS2005PerfGuide.doc
February 2, 2014 at 12:03 pm
Viewing 15 posts - 361 through 375 (of 812 total)