Trustpilot Interview Question

When would you use SQL, and when would you use NoSQL?