Pregunta de entrevista de Pegasystems

What is the difference between SQL and NoSQL? And where would you use which?