Pergunta de entrevista da empresa NBCUniversal

What is and how do you use a window function in SQL?