What is the use of FETCH command? OLA interview question

With code snippet