One of my favorite ways of using SQL to streamline your code is the utilization of cursors, loops and dynamic SQL. Sometimes I start with this type of solution right out of the gate and sometimes it comes as my code evolves. Today I ran into a data integrity issue in a table and I […]