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
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 shopping cart data use case
- Sample shopping cart data
- CQL queries over shopping cart data

Steps
Shopping Cart Data Modeling Example for Cassandra
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;