Forum Replies Created

Viewing 15 posts - 286 through 300 (of 4,080 total)

  • RE: Is it possible to compare multiple fields to a value without OR statements?

    He's having a rules engine generate his SQL queries. He liked the functionality of IN, but it won't work for multiple columns at once. I...

    __________________________________________________

    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: Is it possible to compare multiple fields to a value without OR statements?

    In any event, for multiple-column testing, you're probably going to have to write some inline table-valued functions like this one. Go ahead and get the multiple ORs...

    __________________________________________________

    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: Is it possible to compare multiple fields to a value without OR statements?

    IN only works for equalities. But what did you want to be BETWEEN 1 and 5? Columns 1-5, or something else?

    __________________________________________________

    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: stored procedure for tagging same contact information

    What should the result be if a row matches two or more established groups? For example, there is a 'Smith' group and a 'Jones' group; then, you...

    __________________________________________________

    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: Why does the query optimizer choose this way?

    The optimizer sometimes chooses a "good enough" solution rather than take the time to explore all possible query plans.

    The clustered index is sequenced on Column [a]. This means...

    __________________________________________________

    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: Relationship of Operator cost and execution time

    Actually, I was referring to why the definition of "expensive" changed, not the OPs current speed.

    __________________________________________________

    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: Relationship of Operator cost and execution time

    Gail, does it have to do with things like parallel processing? Much higher CPU cost to get faster throughput?

    __________________________________________________

    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: Export data from SQL server to multiple tabs

    Evidently it's possible. I see some articles out there on point.

    Google all of these at once: MSDN TSQL EXCEL EXPORT MULTIPLE TABS

    __________________________________________________

    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: Random Values between 0.25-6.5

    After looking at the output from RAND(), you may want to read this article:

    http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/sql-server-set-based-random-numbers/%5B/url%5D

    RAND() values repeat when doing set-based operations, so many of us use the following formula to generate...

    __________________________________________________

    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: Fuzzy Matching

    No, I'm not talking about the input batches. I mean how many names are in your client table, or whatever.

    __________________________________________________

    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: Difference between ROW_NUMBER() and ORDER BY...DESC

    Good point to remember is that without a final ORDER BY clause, the optimizer may present rows to you in a manner you didn't anticipate. It just goes...

    __________________________________________________

    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: Fuzzy Matching

    Mis-posted. Withdrawn.

    __________________________________________________

    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: Fuzzy Matching

    If the manual process works for you, then go with it. But thanks for bringing up an interesting problem. 🙂

    __________________________________________________

    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: Fuzzy Matching

    Ron, how many correct names are we talking about? I'm assuming this is like a customer name or something. Is the amount of correct names in...

    __________________________________________________

    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: calculating time difference

    +1 Eirikur

    I wouldn't have thought that would have worked. From somewhere I had the idea that time datatypes always "assumed" day 0. (Our systems always...

    __________________________________________________

    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 - 286 through 300 (of 4,080 total)