

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Rdbms knowledge and support exam preparation. Choose a topic below to get started.
1. |
SQL subqueries that can occur wherever a value is permitted provided the subquery gives only one tuple with a single attribute are called _________ |
A. | Exact Subqueries |
B. | Vector Subqueries |
C. | Positive Subqueries |
D. | Scalar Subqueries |
Answer» E. | |
2. |
Choose the correct option regarding the following query |
A. | The query is syntactically wrong |
B. | The query gives the studentID of the student with the maximum marks |
C. | The query gives the maximum marks amongst all the students |
D. | The query gives all the studentID values except the student with the maximum marksView Answer |
Answer» C. The query gives the maximum marks amongst all the students | |
3. |
State true or false: We can use Subqueries inside the from clause |
A. | True |
B. | False |
Answer» B. False | |
4. |
The _________ construct returns true if the argument in the sub-query is void of duplicates |
A. | not null |
B. | not unique |
C. | unique |
D. | null |
Answer» D. null | |
5. |
What is a correlated sub-query? |
A. | An independent query that uses the correlation name of another independent query. |
B. | A sub-query that uses the correlation name of an outer query |
C. | A sub-query that substitutes the names of the outer query |
D. | A sub-query that does not depend on its outer query’s correlation names |
Answer» C. A sub-query that substitutes the names of the outer query | |
6. |
The ________ comparison checker is used to check “each and every” condition |
A. | all |
B. | and |
C. | every |
D. | each |
Answer» B. and | |
7. |
What is the result of the following query? |
A. | The query gives all the studnames for which marks are greater than all the students in section c |
B. | The query gives all the studnames for which the marks are greater than at least on student in section c |
C. | The query gives all the studnames for which the marks are less than all the students in section c |
D. | The query is syntactically incorrectView Answer |
Answer» C. The query gives all the studnames for which the marks are less than all the students in section c | |
8. |
THE___________CONSTRUCT_RETURNS_TRUE_IF_THE_ARGUMENT_IN_THE_SUB-QUERY_IS_VOID_OF_DUPLICATES?$ |
A. | not null |
B. | not unique |
C. | unique |
D. | null |
Answer» B. not unique | |
9. |
State_true_or_false:_We_can_use_Subqueries_inside_the_from_clause$ |
A. | True |
B. | False |
Answer» C. | |
10. |
The ______ construct returns true if a given tuple is present in the subquery. |
A. | not exists |
B. | present |
C. | not present |
D. | exists |
Answer» C. not present | |
11. |
The ________ comparison checker is used to check “each and every” condition$ |
A. | all |
B. | and |
C. | every |
D. | each |
Answer» E. | |
12. |
The query gives all the studnames for which marks are greater than all the students in section c |
A. | The query gives all the studnames for which the marks are greater than at least on student in section c |
B. | The query gives all the studnames for which the marks are less than all the students in section c |
C. | The query is syntactically incorrect |
Answer» B. The query gives all the studnames for which the marks are less than all the students in section c | |
13. |
State true or false : Nested Subqueries cannot be used for comparing two different sets |
A. | True |
B. | False |
Answer» C. | |
14. |
If a set is a collection of values given by the select clause, The ______ connective tests for set membership |
A. | within |
B. | include |
C. | under |
D. | in |
Answer» E. | |
15. |
What is a subquery? |
A. | A subquery is a select-from-where expression that is nested within another query |
B. | A subquery is any query that is nested within another query |
C. | A subquery is a relation that is externally specified which can be used to handle data in queries |
D. | A subquery is a condition that excludes all the invalid tuples from the database |
Answer» B. A subquery is any query that is nested within another query | |