Enform interview question

How would you create a loop using SQL?