Flip interview question

When do you choose to use SQL and NoSQL database and why?