I have written the following procedure but the the cursor is not displaying or inserting any data. I have ran the select query separately and it returns data properly.