MongoDBQuestion 02 of 8
Documents vs SQL
Answer out loud or in your head first, then compare.
Answer
Relational databases organise data into tables and relations; MongoDB organises it into documents, often with nested data that's used together.
Example: a delivery address can be embedded in an order. In a relational model it often appears as a set of columns or a separate linked record.
To be precise: SQL is a language, not one database. Modern relational databases also support JSON, and MongoDB supports relationships and transactions.
Pitfall: “MongoDB has no schema and is always faster” is a bad answer. What matters is the queries, indexes, data integrity, update costs and the system's requirements.
How did it go? Be honest — “Not yet” puts the question on your review list.
Related questions
- D-P09 · How do SQL and NoSQL differ? — Backend, data and system design