Professional Documents
Culture Documents
a. LIKE
25. b. IN
c. BETWEEN
d. EXISTS
The ________ operator is used to find a character string that matches a given string pattern.
a. BETWEEN
26. b. IS NULL
c. IN
d. LIKE
Many queries that would require the use of the logical OR can be more easily handled with the help
of the special operator ________.
27. a. NOT
b. BETWEEN
c. IN
d. LIKE
The ________ command is used to modify the table structure by adding, removing, or renaming
columns.
28. a. ALTER
b. DELETE
c. DROP
d. ERASE
A table can be deleted from the database by using the ________ command.
a. DELETE
29. b. DROP
c. ERASE
d. MODIFY
What is the command used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from
the PRODUCT table in ascending order by P_PRICE?
a. cascading
32. b. 2-tier
c. layered
d. 3-tier
What command is used to list a unique value for Vendor Code (V_CODE), where the list will produce
only a list of those values that are different from one another?
The basic SQL aggregate function that gives the number of rows containing non-null values for the
given column is ________.
34. a. SUM
b. COUNT
c. MAX
d. MIN
35. The basic SQL aggregate function that gives the total of all values for a selected attribute in a given
column is ________.
a. SUM
b. MAX
c. MIN
d. COUNT
The basic SQL aggregate function that gives the arithmetic mean for the specific column is
________.
36. a. COUNT
b. AVG
c. SUM
d. MAX
The ________ function is used to find the highest value in a table column.
a. TOP
37. b. SUM
c. MAX
d. TOTAL
Frequency distributions can be created quickly and easily using the ________ clause within the
SELECT statement.
38. a. SUM
b. ORDER BY
c. GROUP BY
d. DIST
When using GROUP BY, ________ operates like the WHERE clause in the SELECT statement.
a. DISTINCT
40. b. WHERE GROUP
c. LIKE
d. HAVING
a. view
41. b. group
c. index
d. aggregate
a. view
43. b. base
c. aggregate
d. join
What is the command to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and
the V_NAME, V_AREACODE, V_PHONE and V_CONTACT fields from the VENDOR table where
the values of V_CODE match?
45. What is the command to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and
the V_NAME, V_AREACODE, V_PHONE and V_CONTACT fields from the VENDOR table where
the values of V_CODE match, and the output is ordered by P_PRICE?
To join tables, you simply list the tables in the ________ clause of the SELECT statement.
a. WHERE
46. b. TABLES
c. JOIN
d. FROM
a. when two columns with the same name are specified in the query
47. b. in every query
c. never
d. when more than two tables are used in the query
a.
b.
48.
c.
d.