Quantiphi interview question

When to choose SQL vs NoSQL Database?