How does CQL resemble and differ from SQL?
Last updated
CQL (Cassandra Query Language) borrows SQL's familiar syntax (SELECT, INSERT, tables, rows, columns) to lower the learning curve, but it is not relational: it enforces a query-first model with no joins and access driven by the partition key.
How it resembles SQL:
Same statement keywords and table/row/column vocabulary.
DDL (
CREATE TABLE), DML (INSERT,UPDATE,DELETE), andWHEREclauses look familiar.
How it differs:
No joins, no subqueries, no arbitrary aggregations across partitions.
Queries must include the partition key; filtering other columns needs a clustering key, index, or the risky
ALLOW FILTERING.Primary key is composite: partition key (data placement) plus clustering columns (on-disk order).
Writes are upserts:
INSERTandUPDATEboth just write cells; no read-before-write unless using lightweight transactions.No referential integrity, no foreign keys; denormalization is expected.
- https://www.adaface.com/blog/cassandra-interview-questions/
- https://medium.com/system-design-interviews-simplified/system-design-mock-interview-nosql-databases-df99bc064205
- https://radicals.in/apache-cassandra-training-in-bangalore/
- https://dev.to/arslan_ah/system-design-interview-questions-by-level-junior-mid-level-senior-and-staff-2m6h
- https://medium.com/geekculture/system-design-solutions-when-to-use-cassandra-and-when-not-to-496ba51ef07a
- https://www.careers360.com/courses-certifications/articles/apache-cassandra-interview-questions
- https://blog.huntingcube.ai/top-50-software-engineer-interview-questions-and-answers/
- https://www.alooba.com/skills/tools/database-and-storage-systems/nosql-databases/cassandra/
- https://github.com/Devinterview-io/cap-theorem-interview-questions
- https://thenewstack.io/how-to-conduct-an-interview-for-a-senior-developer-role/
- https://resumeworded.com/interview-questions/software-engineer
- https://www.terminal.io/blog/15-general-software-engineer-interview-questions-for-hiring-software-engineers
- https://agilemania.com/software-developer-interview-questions
- https://4dayweek.io/interview-questions/software-engineer