Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Easy · Free

What is a document in MongoDB vs a row in SQL?

FresherFundamentalsDatabase Fundamentals
Model answer

Documents vs rows

MongoDB stores BSON documents in collections—nested objects without JOIN. SQL normalizes into related tables.

json
{ "_id": 1, "name": "Riya", "skills": ["Java", "SQL"] }
Embedding vs referencing—balance query shape vs update cost.