Rakuten interview question

How do you decide between SQL and NoSql