Pregunta de entrevista de IIFL Finance

What is the difference between NoSQL and SQL databases? When would you use what?