Forum Replies Created

Viewing 15 posts - 14,851 through 14,865 (of 19,564 total)

  • RE: SQL Question

    I have played with this some more to fit into the desired results and requirements.

    select t.field1, (

    select count(*) line_count from #table2 where field2 > t.field2 group by field1

    )

    from #table1 t

    You'll...

  • RE: CTE

    You're welcome.

  • RE: Are the posted questions getting worse?

    GSquared (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    WayneS (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    WayneS (4/14/2010)


    Lynn Pettis (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    Lynn Pettis (4/14/2010)


    To the TinD I am going, fun you all can have.

    It looks like you can come back now.

    And I did....

  • RE: CTE

    Here is a SQLMagazine article on the topic.

    http://www.sqlmag.com/article/tsql3/nifty-ways-to-use-for-xml-path-concatenation.aspx

  • RE: CTE

    ychen 55059 (4/14/2010)


    Thank you so much. That works beautifully.

    I'm not familiar with XML. Could you point me to some additional resources so that I can understand...

  • RE: Are the posted questions getting worse?

    WayneS (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    WayneS (4/14/2010)


    Lynn Pettis (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    Lynn Pettis (4/14/2010)


    To the TinD I am going, fun you all can have.

    It looks like you can come back now.

    And I did. Just...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    Lynn,

    On the topic of case consistency - please don't ever try Microsoft CRM. It will absolutely drive you bonkers. CRM requires objects be created through...

  • RE: 'Debugging Query' for a long time...

    Alternatives to the Red Exclamation mark (which historically with MS has meant problems), use F5 or Alt-X.

  • RE: Are the posted questions getting worse?

    WayneS (4/14/2010)


    Lynn Pettis (4/14/2010)


    CirquedeSQLeil (4/14/2010)


    Lynn Pettis (4/14/2010)


    To the TinD I am going, fun you all can have.

    It looks like you can come back now.

    And I did. Just waiting now...

  • RE: Teamp DB Size Vs Performance

    Yes, size will have an impact on performance - slightly. The larger the database and tables, the more data that may need to be maintained. You should keep...

  • RE: SQL Question

    The Subquery will also throw an error

    The multi-part identifier "#table1.field2" could not be bound.

    On the line:

    select field1, count(*) line_count from #table2 where field2 > #table1.field2 group by field1

  • RE: 'Debugging Query' for a long time...

    Guess I was wrong. I interpreted the problem to be that debugging was taking too long and that you wanted to debug.

    Glad you found your answer.

  • RE: Are the posted questions getting worse?

    Lynn,

    On the topic of case consistency - please don't ever try Microsoft CRM. It will absolutely drive you bonkers. CRM requires objects be created through the GUI. ...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (4/14/2010)


    That's why I write all system tables in lower case as well.

    I hadn't considered that. Makes sense. I should probably check my...

  • RE: 'Debugging Query' for a long time...

    WayneS (4/14/2010)


    In SSMS, are you pressing the Green Triangle, or the Red Exclamation Point?

    The Green Triangle is to run in Debug mode, the Red Exclamation Point executes the query. You...

Viewing 15 posts - 14,851 through 14,865 (of 19,564 total)