Skip to content

Instantly share code, notes, and snippets.

@jeffchao
Created April 8, 2014 01:02
Show Gist options
  • Save jeffchao/10079328 to your computer and use it in GitHub Desktop.
Save jeffchao/10079328 to your computer and use it in GitHub Desktop.
Cassandra ordering cluster columns
CREATE TABLE employees (company varchar, name varchar, age int, role varchar, primary key (company, name, age)) with clustering order by (name desc, age asc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment