What is difference between navigating records in while loop and cursor ?