Q.1.
SELECT dept_name, ID, avg (salary) FROM instructor GROUP BY dept_name; This statement IS erroneous because
Q.2.
SQL applies predicates in the _______ clause after groups have been formed, so aggregate functions may be used.
Q.3.
Aggregate functions can be used in the select list or the_______clause of a select statement or subquery. They cannot be used in a ______ clause.
Q.4.
The ________ keyword is used to access attributes of preceding tables or subqueries in the from clause.
Q.5.
Which of the following creates a temporary relation for the query on which it is defined?
Q.6.
WITH max_budget (VALUE) AS (SELECT MAX(budget) FROM department) SELECT budget FROM department, max_budget WHERE department.budget = MAX budget.value;
Q.7.
Subqueries cannot:
Q.8.
Which of the following is not an aggregate function?
Q.9.
The EXISTS keyword will be true if:
Q.10.
How can you find rows that do not match some specified condition?