Question 44: You have been given below table definition
CREATE TABLE HADOOEXAM(
COURSE_TITLE text,
COURSE_ADDED_YEAR int,
COURSE_ADDED_DATE timestamp,
COURSE_DETAIL text,
USER_ID UUID,
COURSE_ID TIMEUUID,
PRIMARY KEY ((COURSE_TITLE,COURSE_ADDED_YEAR)));
What would be the result, when you run the below query?
SELECT * FROM HADOOEXAM WHERE COURSE_TITLE='CASSANDRA' ;
- It will return all the courses which matches with the COURSE_TITLE='CASSANDRA'
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Correct Answer: 4
Explanation: Yes, it will be invalid query. Because we have composite key.
You can access to full explanation to question and answer from this page.