PureCode Software interview question

What considerations do you take into account when choosing between SQL and NoSQL databases for a project?