title: what is the purpose of cursor?
body: <p>I tried searching over internet about the purpose,use and implementation of cursor in SQL.I found some answers they were very explained in very bookish type of language and the examples were way complicated to understand the function itself.I am new to database/SQL so can somebody please explain cursor with a simple example. </p>