Action Engine interview question

In which case you would use use sql and when nosql database