Difficulty: Beginner
Estimated Time: 15 minutes

In this scenario, you will:

  • Create tables for a digital library data use case
  • Populate tables with sample digital library data
  • Design and execute CQL queries over digital library data

This scenario is also available on our datastax.com/dev site, where you can find many more resources to help you succeed with Apache Cassandra™.

In this scenario, you explored:

  • Schema design for a digital library use case
  • Sample digital library data
  • CQL queries over digital library data

Digital Library Data Modeling Example for Cassandra

Step 1 of 13

Create a keyspace

Create the music_data keyspace:

cqlsh -e "

WITH replication = {
  'class': 'NetworkTopologyStrategy', 
  'DC-Houston': 1 };"