Forum Replies Created

Viewing 15 posts - 46 through 60 (of 192 total)

  • RE: TOP clause WITH TIES

    L' Eomot Inversé (5/30/2013)


    That's a fun question.

    But maybe there will be complaints from some who think QotD should test only knowledge and not reasoning (except perhaps very trivial...

  • RE: Data Type

    Hugo Kornelis (5/10/2013)


    Danny Ocean (5/10/2013)


    Good question, but Explanation is not completed or require more details.

    I think hugo can help us.

    Unfortunately, I can't.

    If Hugo doesn't get it, I don't feel bad...

  • RE: Table Variable

    Sean Lange (4/30/2013)


    I don't think I follow you here Tom. The condition checks is @ToCreate = 1. It does not equal 1 because it is NULL. Therefore the boolean check...

  • RE: Table Variable

    Bob Cullen-434885 (4/30/2013)


    Here, it has been noted, the DECLARE is non-executable code, and so at run-time the IF effectively contains an empty branch.

    And if @ToCreate is set to 1, SQL...

  • RE: datetime comparison behaving oddly

    ScottPletcher (4/26/2013)


    I'd use a CASE expression so you can guarantee the order of execution; you don't need a CTE for that.

    SELECT OBSVALUE

    FROM OBS

    WHERE 1 = CASE

    ...

  • RE: datetime comparison behaving oddly

    Eric Nordlander (4/26/2013)


    1. what are the min and max values in the table? (the ranges for the data types is why it could be a concern--> http://msdn.microsoft.com/en-us/library/ms187347.aspx)

    2. try assigning...

  • RE: datetime comparison behaving oddly

    Eric Nordlander (4/26/2013)


    once the table is created, ALT+F1 to see what the data type is for OBSVALUE column.

    It's a datetime. And of course this gives no errors...

    SELECT OBSVALUE

    FROM temperic_OBSVals

    WHERE...

  • RE: Create Table

    This is what I get for trusting that voice in my head that says, "No, that's way too obvious." :crazy:

    ron

  • RE: The Vacation Dilemma

    Today's a bad day to ask this question. The guy in the next cubicle over has spent the last four months spearheading our biggest upgrade project of the year....

  • RE: FK to IDENTITY

    It would have been interesting to include exactly which value(s) would be inserted. If you weren't aware that the identity would be consumed, you might believe that the value...

  • RE: Search a value to complete database

    You have no idea how many times in the six months I've been at this job that I've wished for a script like this. Thank you so much!

    ron

  • RE: ISNUMERIC

    happycat59 (3/5/2013)


    Mmm, why have "ISNUMERIC" as the heading for this question ? This question is not really about the ISNUMERIC function. How about getting the heading to match...

  • RE: Clustered Index

    Good question.

    I might have changed up the options a bit, though. Once you realize the first two are true (and those are easy), then by the nature of the...

  • RE: Can This Work?

    Where I got tripped up was here, and I guess I'm still not sure I understand...

    create proc sp1

    as

    select * from temp1

    exec sp2

    Without a BEGIN and END defining the body of...

  • RE: BIT Primary Key

    Hugo Kornelis (1/29/2013)


    That can actually be quite useful. For instance [...] for applications that need values for specific settings that are database-wide.

    Having used a single-row table for just such a...

Viewing 15 posts - 46 through 60 (of 192 total)