Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 3,348 total)

  • RE: COUNT() Function

    Good question, mediocre explanation - no errors, but complicating things more than needed.

    There are three variations of COUNT:

    * COUNT(*) - returns the number of rows, regardless of content.

    * COUNT(expression) -...

  • RE: SQL JOINS

    Calling a column ID and then putting duplicate values in it is just evil. No raise for the developer who wrote this, and a warning that (s)he'll be fired if...

  • RE: Endpoints

    PurpleLady (4/12/2013)


    Actually deprecated does not mean removed - it means currently supported but will be removed in future versions. So SOAP is a valid type.

    No, it is not. SOAP was...

  • RE: TRIGGERS

    venkat9.sql (4/9/2013)


    I recently corrected an error in a trigger code thats using COUNT(*) = 1 logic to COUNT(*) >= 1 since it overlooks the possibility of multiple rows.

    Aarghh! Please change...

  • RE: TRIGGERS

    Danny Ocean (4/9/2013)


    BUT statement 6 (ID 4 & 5) execute successfully and inserted two rows in table. In this we are using UNION ALL.

    How it's possible ? Anyone let me...

  • RE: Tune SQL Server 2012 Databases Using Database Engine Tuning Advisor

    The article is a good "how-to" on operating the DTA, but it unfortunately fails to put up a large disclaimer, that the DTA is far from perfect. It is a...

  • RE: TRIGGERS

    I'm glad I double and triple checked before replying; I almost fell for it. The glaring error in how the trigger code handles multi-row inserts is so staring people in...

  • RE: LEFT JOIN

    DavidBridgeTechnology.com (4/8/2013)


    Who edits the QOTD submissions and why did they not pick up on this?

    Steve has replied to these and similar questions in the past; I don't think anything has...

  • RE: ISNUMERIC

    nenad-zivkovic (4/8/2013)


    I hope someone else can explain why a backslash at the start of the string is considered numeric, as I was surprised at that myself.

    I've managed to find this...

  • RE: ISNUMERIC

    kapil_kk (4/8/2013)


    For the first part I understand the behavior but am still confused with the SELECT ISNUMERIC('.+') -- Returns 0 behavior 🙁

    The . actually represents 0.0, with leading and trailing...

  • RE: ISNUMERIC

    An okay question, I guess. The combination of title, question, and answer options may make it very easy to overlook the actual issue, but if we cannot be expected to...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Jeff Moden (4/7/2013)


    With the understanding that I've not seen nor have I been able to produce such a failure except when an indeterminate formula was used as the target of...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Jeff Moden (4/7/2013)


    david.holley (4/7/2013)


    Would wrapping the SELECT inside another work if the specific order is a concern? Something like...

    SELECT @NewString = @NewString + NameInitials FROM

    (SELECT NameInitials FROM Employees WHERE OfficeId...

  • RE: LEFT JOIN

    bev.kaufman (4/4/2013)


    Which means the Flag filter belonged in the WHERE clause, not the JOIN.

    I think I'm starting to get it. The JOIN clause is about what gets included on...

  • RE: LEFT JOIN

    bev.kaufman (4/4/2013)


    Okay, then how would you have written a left outer join if you wanted to fetch only the records where the left side had flag = 1?

    SELECT ...

Viewing 15 posts - 1,786 through 1,800 (of 3,348 total)