4. When you try to create index on Location keys, it will give error.
Correct Answer : Get Lastest Questions and Answer : Explanation: Indexes on the keys and values of a map cannot co-exist. For example, if you created MYINDEXVALUE, you would need to drop it to create an index on the map keys using the KEYS keyword and map name in nested parentheses:
DROP INDEX MYINDEXVALUE; CREATE INDEX MYINDEXKEY ON TRINING_COURSE (KEYS(LOCATION));
Now, you need to select all rows having email id as 'admin@hadoopexam.com' , which of the following are correct syntax ? 1. SELECT * FROM TRINING_COURSE WHERE emails CONTAINS 'admin@hadoopexam.com' ;
2. SELECT * FROM TRINING_COURSE WHERE emails HAVING 'admin@hadoopexam.com' ;
4. SELECT * FROM TRINING_COURSE WHERE emails IN ('admin@hadoopexam.com' );
Correct Answer : Get Lastest Questions and Answer : Explanation: using the CONTAINS condition in the WHERE clause, you can filter the set collection data.
CREATE INDEX MYINDEXVALUE ON TRINING_COURSE (LOCATION);
Now, you need to select all rows having TRAINING_COURSE ORGANIZED IN a˜Mumbaia which of the following are correct syntax ? 1. SELECT * FROM TRINING_COURSE WHERE LOCATION CONTAINS 'MUMBAI';
2. SELECT * FROM TRINING_COURSE WHERE LOCATION IN { 'MUMBAI' };
4. SELECT * FROM TRINING_COURSE WHERE LOCATION HAVING 'MUMBAI';
Correct Answer : Get Lastest Questions and Answer : Explanation: filter the data using a value in the LOCATION map using the CONTAINS condition in the WHERE clause. The statement is the same one you use to filtering the data in a set or list.
3. Client read or write requests can be sent to any node in the cluster, and When a client connects to a node with a request, that node serves as the coordinator for that particular client operation
4. Node which contain configuration for entire cluster.