SQL Server solution
Starting from the TABLE1 source table that contains consecutive value groups (which can reach hundreds of thousands of items) in the Serie field, we need to get to the TABLE2 table that contains the consecutive value groups, but without another grouping field in the TABLE1 table . I have implemented several solutions (recursive CTE, Cursor FETCH-ing, Self-Join on TABLE1, ... ) but none is fast enough. It's about hundreds of thousands of articles ... maybe more.
Indebted.
Indebted.
Tagged:
Comments
I am sorry, I am confused. What does the information in your post has in regards to Redgate's SQL Test application?
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Best regards.
Unfortunately you posted your question in the SQL Test forum. If you have any questions, that are not Redgate product specific, in the future please post in the general forum available via this link:
https://forum.red-gate.com/categories/general-forum
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com