Pegasystems interview question

What is the difference between SQL and NoSQL? And where would you use which?