table-race-sponsors

cql
DELETE sponsorship FROM cycling.race_sponsors
  WHERE race_name = 'Giro d''Italia';
cql
INSERT INTO cycling.race_sponsors (
  race_name, sponsorship
) VALUES (
  'Tour de France',
  { 'LCL', 'Carrefour', 'Skoda', 'Vittel', 'Krys' }
);

INSERT INTO cycling.race_sponsors (
  race_name, sponsorship
) VALUES (
  'Tour de Suisse',
  { 'BMC', 'Tag Heuer', 'Assos' }
);

INSERT INTO cycling.race_sponsors (
  race_name, sponsorship
) VALUES (
  'Criterium du Dauphine',
  { 'LCL', 'Skoda' }
);

INSERT INTO cycling.race_sponsors (
  race_name, sponsorship
) VALUES (
  'Giro d''Italia',
  { 'Castrelli', 'Tag Heuer', 'Alfa Romeo', 'Unibet', 'Pinarello', 'Selle Italia',  'Rovagnati', 'Scrigno' }
);
cql
INSERT INTO cycling.race_sponsors (
  race_year, race_name, sponsorship
) VALUES (
  2018, 'Tour de France',
  [ 'LCL', 'Carrefour', 'Skoda', 'Vittel', 'Krys' ]
);
cql
DELETE sponsorship[2] FROM cycling.race_sponsors
  WHERE race_year = 2018 AND race_name = 'Tour de France';
cql
CREATE INDEX sponsorship_idx ON cycling.race_sponsors (sponsorship);
cql
CREATE CUSTOM INDEX sponsorship_idx ON cycling.race_sponsors (sponsorship)
  USING 'StorageAttachedIndex';
cql
DESCRIBE INDEX cycling.sponsorship_idx;
cql
DESCRIBE INDEX cycling.sponsorship_idx;
cql
SELECT * FROM cycling.race_sponsors;
cql
SELECT * FROM cycling.race_sponsors;
cql
SELECT * FROM cycling.race_sponsors;
cql
SELECT * FROM cycling.race_sponsors WHERE sponsorship CONTAINS 'Carrefour';
cql
SELECT * FROM cycling.race_sponsors WHERE sponsorship CONTAINS 'Carrefour';
cql
CREATE TABLE IF NOT EXISTS cycling.race_sponsors (
  race_name text PRIMARY KEY,
  sponsorship set<text>
);
cql
CREATE TABLE IF NOT EXISTS cycling.race_sponsors (
  race_year int,
  race_name text,
  sponsorship list<text>,
  PRIMARY KEY (race_year, race_name)
);
cql
DESCRIBE TABLE cycling.race_sponsors;
cql
DESCRIBE TABLE cycling.birthday_list;
cql
DROP TABLE IF EXISTS cycling.race_sponsors;
cql
DROP TABLE IF EXISTS cycling.race_sponsors;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

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