SQL : SQL Server loop - how do I loop through a set of records

Click a thumbnail to watch in a lightweight modal. (No downloads — view only.)