Lowell (2/11/2014)
well i've only done one piece of it...adding the date;i have a simple macro i use to dump typical copy/paste data and turn it into a CTE, so coming up with SOMETHING feels better than skipping the question altogether. i try not to pad my post count asking for DDL and sample data too often π
the second part i glossed over:
there's a requirement for " whenever it find a β1β in the pattern column. If there is a gap in the pattern it doesnβt need to create a new row."
can be done, but need more than one sample row, and need to know the length of string, whether the preceeding whitespace was relevant, and some more details, but this might get the ball rolling.
Brilliant! Thanks for posting this, Lowell. I can see it becoming famous π
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]