Cobee Interview Question

When would you use SQL or NoSQL databases?