Created
April 8, 2014 01:02
-
-
Save jeffchao/10079328 to your computer and use it in GitHub Desktop.
Cassandra ordering cluster columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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