Pergunta de entrevista da empresa WooliesX

In what situations would you use a relational database over a non-relational database, and vice versa.