单项选择题
Which clause should you use to exclude group results? ()
A. WHERE
B. HAVING
C. RESTRICT
D. GROUP BY
E. ORDER BY
相关考题
-
单项选择题
What is true about joining tables through an equijoin? ()
A. You can join a maximum of two tables through an equijoin.
B. You can join a maximum of two columns through an equijoin.
C. You specify an equijoin condition in the SELECT or FROM clauses of a SELECT statement.
D. To join two tables through an equijoin, the columns in the join condition must be primary key and foreign key columns.
E. You can join n tables (all having single column primary keys) in a SQL statement by specifying a minimum of n-1 join conditions. -
单项选择题
You need to calculate the total of all salaries in the accounting department. Which group function should you use? ()
A. MAX
B. MIN
C. SUM
D. COUNT
E. TOTAL
F. LARGEST -
单项选择题
You define a multiple-row subquery in the WHERE clause of an SQL query with a comparison operator "=". What happens when the main query is executed? ()
A. The main query executes with the first value returned by the subquery.
B. The main query executes with the last value returned by the subquery.
C. The main query executes with all the values returned by the subquery.
D. The main query fails because the multiple-row subquery cannot be used with the comparison operator.
E. You cannot define a multiple-row subquery in the WHERE clause of a SQL query.
