Pergunta de entrevista da empresa Flagstar Bank

What is the difference between a derived table and a subquery?