Which of the following is correct CQL to add new location for a training_course ? 1. INSERT INTO TRINING_COURSE (id, course_sequence, LOCATION) VALUES (62c36092-82a1-3a00-93d1-46196ee77204, 4, { '2017-9-22 09:00' : 'MUMBAI', '2017-10-1 09:00' : 'CHENNAI'});
2. UPDATE TRINING_COURSE SET LOCATION = LOCATION + {'2017-9-22 09:00' : 'MUMBAI'} WHERE id = 62c36092-82a1-3a00-93d1-46196ee77204 AND course_sequence = 4;
Correct Answer : Get Lastest Questions and Answer : Explanation: : In Apache Cassandra 2.1 and later, you can index collections and query the database to find a collection containing a particular value. Continuing with the music service example, suppose you want to find songs tagged blues and that debuted at the Fillmore. Index the tags set and venue map. Query for values in the tags set and the venue map, as shown in the next section.
CREATE INDEX ON playlists (tags); CREATE INDEX mymapvalues ON playlists (venue); Specifying a name for the index, such as mymapindex, is optional.
Correct Answer : Get Lastest Questions and Answer : Explanation: It will create an Index to value part of collection. There are different syntax to index key part.