Difficulty: Beginner
Estimated Time: 15 minutes

In this scenario, you will:

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

In this scenario, you explored:

  • Schema design for a shopping cart data use case
  • Sample shopping cart data
  • CQL queries over shopping cart data

Shopping Cart Data Modeling Example

Step 1 of 10

Create a keyspace

Create the shopping_cart_data keyspace:

CREATE KEYSPACE shopping_cart_data
WITH replication = {
  'class': 'NetworkTopologyStrategy', 
  'DC-Houston': 1 };

Set the current working keyspace:

USE shopping_cart_data;