Forum Replies Created

Viewing 15 posts - 2,896 through 2,910 (of 4,080 total)

  • RE: Are the posted questions getting worse?

    My rating should be "Threadhead" instead of Ten Centuries, but I'm making it a point to spend more time answering questions than "chatting" here in The Thread. 😉

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: SQL Function : Find ‘X’ Business Days in the Future

    I wasn't going to say it, Jeff. 🙂

    If all the function is used for is to find a single date (like the first...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Database design issue

    Also keep in mind that normalisation is a logical concept, not a physical one.

    Multiple indexes and summary tables are everyday examples of redundancy that don't seem to...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How to update rows based on data within the same table

    Is this....?

    Nevermind.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Nested Stored Procedures

    .... and a novel thought...

    Why not just have the nested proc return those two values as output parameters itself, rather than as a two-column, one-row result set? ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    And the secret ingredient is . . . . you have to use a cursor!

    jc 🙂

    I'm so happy someone else has seen that show. I loved the original...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: SQL Query return value in a field if no results found..

    This came up in another thread. You can find a couple of competing solutions here.

    Basically, you can run an IF Exists with your query to see if there...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Hey... what's an "UPDATE" ?? Can I use it to increment a date?

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Does this query look okay?

    It was new in 2005, Matt. 🙂

    Cross Apply and Outer Apply also work very well with table-valued functions.

    If the function is an inline (single query)...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Does this query look okay?

    It really is.... 😉

    ESPECIALLY for the classic... "I need all the data from the row that has max([col])."

    Try it, you'll like it.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Sounds like a good idea to me, Bruce.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Does this query look okay?

    Also, I used Cross Apply because I believe it's going to produce a more efficient execution plan for you. Please let me know how it performs with your...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Does this query look okay?

    You shouldn't need all three. The first two are both summary queries with the same search criteria, and could be combined. You could also combine subqueries...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    Albatross

    I shook him off from my neck a long time ago, O Ancient Mariner. 😎

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Are the posted questions getting worse?

    And bring us... a shrubbery!!

    NI!

    Shhhhh....

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

Viewing 15 posts - 2,896 through 2,910 (of 4,080 total)