This article explains how to use CURSORS and SELECT statements to loop through your table and INSERT the necessary rows. It should flow something like this:
UPDATE current cable_num fields to include the '_1' on the end since they probably will all have at least 1 iteration of cond_num.
Loop through the table finding (cond_num - 1) for each distinct cable_num and then insert that many rows with the increasing cable_num concatenation.
All lessons learned from the School of Hard Knocks........at least tuition is cheap.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.