I am doing a project using sql cursors, for one cursor i want to loop through a dataset of Company ids.
How would you use logic such as
- Tables without CompanyID need all data copying.
- Always copy data where CompanyID = 0
How would you perform this is a while loop of a cursor.
I have been looking at this tutorial