Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Creating nodes, relationships, and querying with Cypher in Neo4j.
// Create nodes
CREATE (a:Person {name: "Alice"}), (b:Person {name: "Bob"});
// Create relationship
MATCH (a:Person {name: "Alice"}), (b:Person {name: "Bob"})
CREATE (a)-[:FRIEND]->(b);
// Query
MATCH (p:Person)-[:FRIEND]->(f)
RETURN p.name, f.name;Cassandra Query Language (CQL) is the native query language for Apache Cassandra, a highly scalable, distributed NoSQL database. CQL provides a SQL-like syntax for interacting with Cassandra's column-family data model, supporting data definition, manipulation, and retrieval.
Origin & Creator
CQL was developed by DataStax and the Apache Cassandra community, evolving from 2008 onwards to provide a familiar query interface for Cassandra's wide-column store architecture.
Industrial Note
CQL is critical in industries requiring high availability and write scalability, such as IoT platforms, financial transaction systems, social media feeds, and real-time analytics. Its denormalized, column-family approach allows Cassandra to scale horizontally across multiple nodes.