By default, cursors are moved by 1 row at a time in the result table in sequential order starting from…