Nielsen Interview Question

Explain how to run a loop in SQL