I plan to adopt DataStax Cassandra Certification for the developer. I recently took a practice test and I scored 94% out of 100 if 1 answer was flagged incorrectly. The question arises:
Given the following table, which of the following statements is an example of
Data Modification Language (DML) in CQL? CREATE TABLE comics ( title text,
issueNumber int, originalPriceDollars float, PRIMARY KEY ( title, issueNumber
) );
SELECT * FROM comics;
ALTER TABLE comics ADD currentPriceDollars float;
DROP KEYSPACE test;
None of the other answers are DML.
I chose the ALTER TABLE comic book option, and according to DataStax, this answer is incorrect. Then what is DML in Kassandra. Doesn't this expression alter the data? And the correct answer is: None.
Thank.
source
share