Professional Documents
Culture Documents
State Finished
Marks 12.00/13.00
Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What is a correlated sub-query?
Select one:
a. an independent query that uses the correlation name of another independent query.
b. a sub-query that substitutes the names of the outer query
c. a sub-query that uses the correlation name of an outer query
d. a sub-query that does not depend on its outer query’s correlation names
Feedback
The correct answer is: a sub-query that uses the correlation name of an outer query
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following should be used to find the mean of the salary?
Select one:
a. avg(salary)
b. mean(salary)
c. sum(salary)
d. count(salary)
Feedback
The correct answer is: avg(salary)
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
We can test for the nonexistence of tuples in a subquery by using the construct?
Select one:
a. exist
b. exists
c. not exist
d. not exists
Feedback
The correct answer is: not exists
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The _________ construct returns true if the argument in the sub-query is void of duplicates :
Select one:
a. unique
b. not null
c. null
d. not unique
Feedback
The correct answer is: unique
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
If a set is a collection of values given by the select clause, The ______ connective tests for set membership :
Select one:
a. within
b. include
c. under
d. in
Feedback
The correct answer is: in
Question 6
Complete
Mark 0.00 out of 1.00
Flag question
Question text
In SQL, GRANT command is used to
Select one:
a. allow user to create databases
b. choose auditing for specific SQL commands
c. allow user to access databases
d. grant system privileges, roles, and object privileges to uses and roles
Feedback
The correct answer is: grant system privileges, roles, and object privileges to uses and roles
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is true concerning triggers?
Select one:
a. you do not create them with SQL.
b. they have an event, condition, and action.
c. they execute against only some applications that access a database.
d. they cannot cascade (cause another trigger to fire).
Feedback
The correct answer is: they have an event, condition, and action.
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The ________ connective tests for set membership, where the set is a collection of values produced by a select
clause. The _________ connective tests for the absence of set membership.
Select one:
a. not in, in
b. in, or
c. in, not in
d. or, in
Feedback
The correct answer is: in, not in
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following statement(s) is TRUE regarding subqueries?
Select one:
a. outer query and inner query can get data from different tables
b. inner queries cannot contain GROUP BY clause
c. outer query and inner query must get data from the same table
d. inner queries in WHERE clause can contain ORDER BY
Feedback
The correct answer is: outer query and inner query can get data from different tables
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The ______ construct returns true if a given tuple is present in the subquery.
Select one:
a. exists
b. not exists
c. present
d. not present
Feedback
The correct answer is: exists
Question 11
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What is a subquery?
Select one:
a. a subquery is a condition that excludes all the invalid tuples from the database
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 select-from-where expression that is nested within another query
Feedback
The correct answer is: a subquery is a select-from-where expression that is nested within another query
Question 12
Complete
Mark 1.00 out of 1.00
Flag question
Question text
A UNION query is which of the following?
Select one:
a. combines the output from multiple queries and must include the same number of columns.
b. combines the output from no more than two queries and must include the same number of columns.
c. combines the output from multiple queries and does not include the same number of columns.
d. combines the output from no more than two queries and does not include the same number of columns.
Feedback
The correct answer is: combines the output from multiple queries and must include the same number of columns.
Question 13
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following statements are TRUE regarding subqueries?
Select one:
a. there is no limit on the number of subquery levels in the WHERE clause of a SELECT statement
b. a subquery can retrieve zero or more rows
c. a subquery can appear on either side of a comparison operator
d. both A and B
Feedback
The correct answer is: both A and