Forum Replies Created

Viewing 15 posts - 2,926 through 2,940 (of 4,080 total)

  • RE: Detect duplicate rows - with a twist

    Lynn: Wait... are we disagreeing about something?

    If so, don't mind us, Scott. Sidebar discussions are the only payment a volunteer ever gets.

    __________________________________________________

    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: Finding Records with ALL of Several Pieces of Criteria

    Ewww....

    Did the same people who wrote the first chunk of code design your DB ??

    __________________________________________________

    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: Detect duplicate rows - with a twist

    I provided the trivial data, but mine still works if they aren't in sequence. That was omitted from the original specs, so I didn't want to assume...

    __________________________________________________

    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: Detect duplicate rows - with a twist

    Lynn, doesn't this assume that all the duplicates are going to fall together in sequence?

    __________________________________________________

    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: Finding Records with ALL of Several Pieces of Criteria

    Looking at the two little schema you supplied, I don't understand why the user ID is associated with a piece of equipment, rather than with skills. I would...

    __________________________________________________

    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: Detect duplicate rows - with a twist

    Tsk... I'll never understand what is wrong with a simple integer.

    cast(min(cast(ID as varchar(50))) as uniqueidentifier)

    I can give you a cross apply solution, but nothing will build #dupRawData as...

    __________________________________________________

    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: Detect duplicate rows - with a twist

    Scott, please note that I revised my original solution to cut down on the number of scans of your input table. It now creates a temp table...

    __________________________________________________

    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: Detect duplicate rows - with a twist

    This should work for you. I just revised this to break duplicate RawData into a separate temp table and index it. The original version using just...

    __________________________________________________

    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: Find X business day

    Why so it is! Sorry. Good luck with implementing the Calendar table. You won't regret 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: Calculation of TV Commercial Breaks with SQL2005

    Thank you SO much for posting up sample data. 🙂

    I'm still not sure I completely understand your requirements. Can you add to your post what you would...

    __________________________________________________

    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?

    Been there, Barry. You get LOTs of sympathy and well-wishes. The good news is that it will all be over quickly. I mean that...

    __________________________________________________

    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?

    Morning, Alvin 🙂

    NEVER type while NOT caffeinated!!

    Isn't that what I said? Must... drink... more ... coffee....

    Isn't it beautiful outside this weekend? ...

    __________________________________________________

    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?

    The rows column would be the same.

    Do you think if I went back and edited my post to remove the code, the Thread might forgive me?

    And... my assumption about the...

    __________________________________________________

    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?

    I've done it many times.... and yes it is 😀

    Mostly I've had to explain to someone why I favor running many reports against summary tables that are populated with totals...

    __________________________________________________

    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?

    Okay, so I'm still catching up on this thread, and this quote is from mid-Feb.

    Wayne:

    You need to admit that you need help.

    I'd like to invite...

    __________________________________________________

    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,926 through 2,940 (of 4,080 total)