# SQL vs. NoSQL

> When should you choose a NoSQL database over a relational SQL database? Walk through how you would decide for a real application.

Canonical: https://www.internhack.in/learn/interview/database-design/db-sql-vs-nosql-choice
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

When should you choose a NoSQL database over a relational SQL database? Walk through how you would decide for a real application.

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Relational Model, Document Store, Key-Value Store, Wide-Column, Horizontal Scaling, Access Patterns

Previous: [CAP Theorem](https://www.internhack.in/learn/interview/database-design/db-nosql-cap-theorem) · Next: [Isolation Levels](https://www.internhack.in/learn/interview/database-design/db-transaction-isolation-levels) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Database Sharding](https://www.internhack.in/learn/interview/database-design/db-sharding-patterns)
- [Replication Strategies](https://www.internhack.in/learn/interview/database-design/db-replication-master-slave)
- [Referential Integrity](https://www.internhack.in/learn/interview/database-design/db-foreign-key-constraints)
- [Composite Keys](https://www.internhack.in/learn/interview/database-design/db-composite-primary-key)
- [Stored Procedures](https://www.internhack.in/learn/interview/database-design/db-stored-procedures-pros-cons)
- [Denormalization](https://www.internhack.in/learn/interview/database-design/db-denormalization-use-case)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
