title: what is the difference b/w Cursor and Loop of SQL
body: <p>I can't figure out why to use cursor when we have different loops to iterate over data in SQL. Can you please guide me here and what's the difference and when to use which option.</p>