Forum Replies Created

Viewing 15 posts - 151 through 165 (of 455 total)

  • RE: BREAK

    archie flockhart (3/4/2015)


    Curious as to why the Break doesn't exit from the IF , as the referenced BOL page suggests that it should ? ( It clearly does work as...

  • RE: Not Again!

    Dave62 (2/18/2015)


    I got it right but I don't think Steve got the answer to his question.

    Steve asked the simplest request: how many users on the website?

    I would interpret that question...

  • RE: Approximate Data types

    Sean Lange (2/16/2015)


    Great back to basics question. I am shocked at the response rate.

    Correct answers: 57% (166)

    Incorrect answers: 43% (123)

    Total attempts: 289

    I am really surprised that so many people got...

  • RE: Create Table FAILED!?

    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...

  • RE: Logical Query Processing order

    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...

  • RE: Merge Targets

    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/

    😀

  • RE: PIVOT

    I was making this a lot harder than it needed to be, until I remembered this part of PIVOT:

    ..

    FOR

    [<column that contains the values that will become column headers>]

    IN ( [first...

  • RE: Biml

    It actually means:

    Boy, I Miss Lucy.

    😀

  • RE: What was that field name?

    sdorris 90134 (8/6/2014)


    Note: This has only been tested in SQL Server 2008 SP3

    I tested this in SQL 2005 and your correct answer does not work. Are we to imply...

  • RE: Sub Query

    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...

  • RE: Sub Query

    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...

  • RE: Is a Primary Key an index?

    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...

  • RE: Poecilonym Madness!

    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...

  • RE: Fastest way to convert strings 'TRUE' and 'FALSE' to bit-values 1 and

    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...

  • RE: Upgrading cardinality

    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...

Viewing 15 posts - 151 through 165 (of 455 total)