• Flo: I'm not at my laptop right now, so I can't test your code. I'll do so at the earliest opportunity. Couple of questions though:

    Why are you selecting the top (1000)?

    WHERE N < len(s.definition)-1 should handle that.

    ORDER BY N? Does it make any difference to the output?

    Why table variable @tally?

    __________________________________________________

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