Forum Replies Created

Viewing 15 posts - 136 through 150 (of 191 total)

  • RE: SELECT TOP

    For educational purposes, I would genuinely appreciate it if one of the folks who take issue with the "most of the time" factor could illustrate a scenario in which that...

  • RE: NULL Values and Joins

    I'm completely confused by this explanation. Especially this part:

    However, since the last insert in the second Transaction was invalid, no rows were inserted into table2. So B not C...

  • RE: Nulls

    tommyh (12/8/2010)


    The QOTD isnt there for us to score points... its there to teach/spread knowledge.

    Exactly. I knew I was answering the question incorrectly -- it was the result I...

  • RE: SELECT INTO with a Temp Table

    Excellent question. I came up with five or six possible reasons why the SP might not work, and ruled each of them out in turn. Of course I...

  • RE: Conditional Order By

    tommyh (11/16/2010)


    Richard Warr (11/16/2010)


    Please don't describe questions as "nonsense", people take taime to set them and always have good intentions when they do so. It doesn't help your case if...

  • RE: Detective Stories - Changing the Case

    I'll throw in my proper case function just for laughs...

    ALTER FUNCTION [cf_ProperCase] (@String varchar(MAX))

    RETURNS varchar(MAX)

    AS BEGIN

    DECLARE @ReturnString varchar(max),

    ...

  • RE: HAVING EXISTS

    I had to stare at it a long while, but I finally came up with the right answer without running any queries or researching... woo-hoo! :w00t: Nice question!

    ron

  • RE: Conditional WHERE Clauses and Boolean Algebra

    I don't claim to be an expert on the subject, but when faced with a query like this:

    SELECT field

    FROM table

    WHERE (field LIKE '%A%') OR (field LIKE '%B%')

    I find I get...

  • RE: HAVING without GROUP BY

    Great question. I was torn between the correct answer and the single record returning 0... I don't mind having gotten it wrong. 😀

    ron

  • RE: Round up or down I

    Yep, I've been bitten by that one more than once. Until you learn that int/int "gotcha" it can be nearly impossible to troubleshoot a script that is experiencing it....

  • RE: Predict the outcome

    Good question. In retrospect it seems obvious, and I think that's why I didn't go with the obvious answer. Like others I researched the question as far as...

  • RE: Are we in all these cities?

    Tom Garth (7/13/2010)


    I've only used semi-colons for multiple short statements on a single line. I've never heard any pros or cons regarding using them or not using them.

    As I understand...

  • RE: Are we in all these cities?

    I saw the semicolon, said "well that looks wrong," and then proceeded to ignore it completely and got the answer wrong. Shows how smart I am.

  • RE: LIKE

    I knew it had to be trailing spaces. It's always trailing spaces... 😉

  • RE: coalesce and nullif

    This is a great question, and I'm proud that I managed to work out the correct answer once I realized the first statement was going to try and cast 'test'...

Viewing 15 posts - 136 through 150 (of 191 total)