Forum Replies Created

Viewing 15 posts - 361 through 375 (of 812 total)

  • RE: View My Definition

    free_mascot (3/6/2014)


    Good one, Andy. Thanks.

    +1

    😉

  • RE: View My Definition

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

  • RE: EXCEPT 2

    Hany Helmy (3/3/2014)


    I guess there is something wrong with this question as it should be like follows:

    SELECT X AS 'Except'

    FROM A

    EXCEPT

    SELECT Y

    FROM...

  • RE: EXCEPT 2

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

  • RE: Intersecting - 1

    Curious: the winner is?

    "EXISTS" with absolute less reads.

    SET STATISTICS IO ON

    GO

    SELECT DISTINCT x AS 'EXISTS'

    FROM A

    WHERE exists(SELECT...

  • RE: Intersecting - 1

    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;

  • RE: Intersecting - 1

    First time I see 99% OK.

    😀

  • RE: Stored Procedure Boundaries

  • RE: Stored Procedure Boundaries

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

  • RE: In Database We Trust

    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!

  • RE: IDENTITY

    Thomas Abraham (2/19/2014)


    Good question. Thanks Igor.

    If you want numbers for your records in a SELECT, why not use:

    ROW_NUMBER ( ) OVER ( <partition_by_clause> <order_by_clause> )

    in...

  • RE: IDENTITY

    SQLRNNR (2/19/2014)


    I wonder how many people have used identity in this way (select into...).

    Just one per year!

    😉

  • RE: Valentines Day

    twin.devil (2/14/2014)


    now who said sql server does not have a heart 😛

    +1

    😛

  • RE: Logic Precedence

    Do Humor questions take 7 points?

    Extremely easy.

    😀

  • RE: Analysis Services Multidimensional

    I also found this doc from MSDN that explains the answer

    SSAS2005PerfGuide.doc

Viewing 15 posts - 361 through 375 (of 812 total)