Viewing 15 posts - 151 through 165 (of 455 total)
Dave62 (2/18/2015)
Steve asked the simplest request: how many users on the website?
I would interpret that question...
February 18, 2015 at 4:31 pm
Sean Lange (2/16/2015)
Correct answers: 57% (166)
Incorrect answers: 43% (123)
Total attempts: 289
I am really surprised that so many people got...
February 16, 2015 at 9:09 pm
erb2000 (12/30/2014)
I sux at sql, but isn't the fact the error is in line 1 a huge hint?
You'd think so, but not necessarily. The line number means different things depending...
December 30, 2014 at 7:17 am
Sean Lange (11/11/2014)
chgn01 (11/11/2014)
Order BY is last, Top should before it.
No that wouldn't work. How would you know what rows to retrieve when using TOP if you had not already...
November 11, 2014 at 11:25 am
This isn't a mistake. It's Steve's subtle way of getting us to write more questions:
http://www.sqlservercentral.com/articles/SQLServerCentral/115420/
😀
September 9, 2014 at 6:47 am
sdorris 90134 (8/6/2014)
I tested this in SQL 2005 and your correct answer does not work. Are we to imply...
August 6, 2014 at 8:12 am
Nevyn (7/25/2014)
You know the output of the inner query before the outer query...
That may be true of a non-correlated subquery, but a correlated subquery depends upon some information from...
July 25, 2014 at 7:35 am
At its heart, a correlated subquery is simply one that refers to data from the outer query.
These are (non-correlated) subqueries:
SELECT DB_NAME()
, (SELECT count(*) FROM sys.objects) AS TotalObjects
, (SELECT count(*) FROM...
July 25, 2014 at 6:30 am
Koen Verbeeck (7/16/2014)
Raghavendra Mudugal (7/16/2014)
Koen Verbeeck (7/16/2014)
Unless a clustered index was already defined. 🙂
how you mean? "already"
this simple statement creates a clustered index
CREATE TABLE TT1
(
ID INT PRIMARY...
July 16, 2014 at 6:12 am
The final select returns a row containing Steve is correct because the synonym is pointed at the view called Test that points to the Test2 table. Depending on your outlook...
June 20, 2014 at 7:55 am
Good question.
As usual, though, "easiest" translates to "how you should most often not do it".
If @TrueFalse is anything other than 'TRUE', 'FALSE', '', or an integer string, you'll get an...
June 5, 2014 at 7:03 am
Setting aside the trace flag issue (I don't blame the question writer for Microsoft's inability to write proper documentation) the only problem I have with this question is the use...
May 15, 2014 at 7:05 am
Viewing 15 posts - 151 through 165 (of 455 total)