T-SQL: A Simple Example Using a Cursor – Steve Stedman