Forum Replies Created

Viewing 15 posts - 211 through 225 (of 346 total)

  • RE: Query Case Statement Filter based on Dependant Data

    If you want to switch on null, use this

    WHERE

    (COALESCE(Database_Status,Instance_Status) = N'deployed')

  • RE: Query Case Statement Filter based on Dependant Data

    Sounds like this is what you are trying to accomplish

    CASE WHEN ISNULL(Database_Status,'') = 'deployed' THEN Database_Status ELSE Instance_Status END

    but I can't be sure without seeing the whole query.

  • RE: Need to filter by date range...

    Jeff Moden (6/13/2011)


    sql_jr (6/13/2011)


    Thank you, Jeff! I see quite a lot of activity around my post (which doesn't really have anything to do w/my original question 🙂 But,...

  • RE: Verify my warning trigger

    I think I have a solution I can live with. I removed the extra table to hold the ID's that have been tried already and instead I'm putting a datetime...

  • RE: your spare time?

    I play racquetball which keeps me in shape but also keeps my joints in constant pain. Other evenings I shoot pool (billiards).

    What kind of computer games do you guys play?...

  • RE: Mathematical Theory (controversy!)

    Steve Jones - SSC Editor (6/8/2011)


    This whole thread has a lot of nonsense in it :hehe:

    Don't dodge the question, Steve Jones, does 1=0.999...?

    😀

  • RE: Mathematical Theory (controversy!)

    Science declares everything nonsense until it can be explained by science, then it's "well of course!"

    Science is a process for discovery, a methodology for explaining phenomenon, not a organizational...

  • RE: Verify my warning trigger

    drew.allen (6/9/2011)


    If it requires user interaction, it really belongs in the front end. Triggers are about as far from the front end as you can get.

    I agree, and I'm...

  • RE: Verify my warning trigger

    Mike01 (6/9/2011)


    How does data get inserted? Directly from an app? Seems to me that by returning a severity 16 for a warning is going to cause the app...

  • RE: Modify trigger

    Oh wow, I didn't notice the same table is being updated in the trigger. I assumed he was updating a second table because the first option doesn't make sense! :w00t:

    4R4,...

  • RE: Modify trigger

    It's taking a long time because you are running 200 subselects (which it looks like this trigger will break if more than one row is inserted.) Change the statement to...

  • RE: Validating date range

    CELKO (6/3/2011)


    Now, download the Rick Snodgrass book on Temporal Queries in SQL from the University of Arizona website (it is free).

    Dr. Snodgrass has a ton of books and...

  • RE: Mathematical Theory (controversy!)

    GSquared (6/8/2011)


    toddasd (6/7/2011)


    Richard Warr (6/6/2011)


    toddasd (6/6/2011)


    Answer this: do you consider this to be true: 1/3 = 0.333...?

    No, however that is the only way you can represent 1/3 as a decimal.

    That's...

  • RE: Mathematical Theory (controversy!)

    Richard Warr (6/6/2011)


    toddasd (6/6/2011)


    Answer this: do you consider this to be true: 1/3 = 0.333...?

    No, however that is the only way you can represent 1/3 as a decimal.

    That's a great...

  • RE: Mathematical Theory (controversy!)

    mtillman-921105 (6/6/2011)


    toddasd, then how do you resolve one of Zeno's paradoxes? Basically (and mathematically), if one runner is catching up with another by half the distance per minute, then...

Viewing 15 posts - 211 through 225 (of 346 total)