Spokeo interview question

SQL vs NoSQL databases, when to use each