Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSEN 5314 Quiz 4.

Similar presentations


Presentation on theme: "CSEN 5314 Quiz 4."— Presentation transcript:

1 CSEN 5314 Quiz 4

2 1. The HAVING clause does which of the following. A
1. The HAVING clause does which of the following? A. Acts like a WHERE clause but is used for groups rather than rows. B. Acts like a WHERE clause but is used for rows rather than columns. C. Acts like a WHERE clause but is used for columns rather than groups. D. Acts EXACTLY like a WHERE clause. 2. To sort the results of a query use: A. SORT BY. B. GROUP BY. C. ORDER BY. D. None of the above is correct. 3. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ; A. Equi-join B. Natural join C. Outer join D. Cartesian join True/False? 4. SQL provides the AS keyword, which can be used to assign meaningful column names to the results of queries using the SQL built-in functions. 5. COUNT(field_name) tallies only those rows that contain a value; it ignores all null values.

3 1. The HAVING clause does which of the following. A
1. The HAVING clause does which of the following? A. Acts like a WHERE clause but is used for groups rather than rows. B. Acts like a WHERE clause but is used for rows rather than columns. C. Acts like a WHERE clause but is used for columns rather than groups. D. Acts EXACTLY like a WHERE clause. 2. To sort the results of a query use: A. SORT BY. B. GROUP BY. C. ORDER BY. D. None of the above is correct. 3. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ; A. Equi-join B. Natural join C. Outer join D. Cartesian join True/False? 4. SQL provides the AS keyword, which can be used to assign meaningful column names to the results of queries using the SQL built-in functions. True 5. COUNT(field_name) tallies only those rows that contain a value; it ignores all null values. True


Download ppt "CSEN 5314 Quiz 4."

Similar presentations


Ads by Google