table-race-winners

INSERT INTO cycling.race_winners (
  race_name, race_position,
  cyclist_name
) VALUES (
  'National Championships South Africa WJ-ITT (CN)', 1,
  { firstname:'Frances', lastname:'DU TOUT' }
);

INSERT INTO cycling.race_winners (
  race_name, race_position,
  cyclist_name
) VALUES (
  'National Championships South Africa WJ-ITT (CN)', 2,
  { firstname:'Lynette', lastname:'BENSON' }
);

INSERT INTO cycling.race_winners (
  race_name, race_position,
  cyclist_name
) VALUES (
  'National Championships South Africa WJ-ITT (CN)', 3,
  { firstname:'Anja', lastname:'GERBER' }
);

INSERT INTO cycling.race_winners (
  race_name, race_position,
  cyclist_name
) VALUES (
  'National Championships South Africa WJ-ITT (CN)', 4,
  { firstname:'Ame', lastname:'VENTER' }
);

INSERT INTO cycling.race_winners (
  race_name, race_position,
  cyclist_name
) VALUES (
  'National Championships South Africa WJ-ITT (CN)', 5,
  { firstname:'Danielle', lastname:'VAN NIEKERK' }
);
CREATE INDEX cycling.cyclist_name_idx IF NOT EXISTS cycling.cyclist_name ON cycling(cyclist_name);
CREATE INDEX cycling.cyclist_name_idx IF NOT EXISTS cycling.cyclist_name
  ON cycling (cyclist_name) USING 'sai';
CREATE CUSTOM INDEX IF NOT EXISTS cycling.cyclist_name_idx
  ON cycling (cyclist_name) USING 'StorageAttachedIndex';
DROP INDEX IF EXISTS cycling.cyclist_name_idx;
SELECT * FROM cycling.race_winners;
SELECT * FROM cycling.race_winners; -- End of line comment
SELECT * FROM cycling.race_winners; // End of line comment
SELECT * FROM cycling.race_winners;
/* This is a
   comment that spans multiple
   lines */
CREATE TABLE IF NOT EXISTS cycling.race_winners (
  cyclist_name FROZEN<fullname>,
  race_name text,
  race_position int,
  PRIMARY KEY (race_name, race_position)
);
DESCRIBE TABLE cycling.race_winners;
DROP TABLE IF EXISTS cycling.race_winners;
#CREATE TYPE IF NOT EXISTS cycling.fullname (
#  firstname text,
#  lastname text
#);
#DROP TYPE IF EXISTS cycling.fullname;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com