Forum Replies Created

Viewing 15 posts - 376 through 390 (of 825 total)

  • 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

  • RE: Analysis Services Multidimensional

    Easy one!

    Thanks!

    🙂

  • RE: Compression

    It is too much easy and logical!

    😀

  • RE: IDENTITY RESEED

    Koen Verbeeck (1/24/2014)


    Great question and a very nice explanation.

    +1

Viewing 15 posts - 376 through 390 (of 825 total)