Professional Documents
Culture Documents
Comp1630 RQ7
Comp1630 RQ7
Comp1630 RQ7
Review Questions
1.What are the five types of comparisons that can be performed in the WHERE
clause?
Comparison, Range, Set membership, Pattern matching, Null
3.What are the five aggregate operations and what do they do?
- COUNT: Returns the number of rows that have non-null values
- SUM: Returns the sum of the values in a specified column
- AVG: Returns the average of the values in a specified column
- MIN: Returns the smallest value in a specified column
- MAX: Returns the largest value in a specified column
7.Within the context of SQL, what values are included when we specify
BETWEEN 10 and 20?
BETWEEN is inclusive of all the numbers that are specified so it will include 10-20.
10. What are the four basic SQL data manipulation commands and what do
they do?
- SELECT: Retrieves and displays data from one or more database tables
- INSERT: Adds new rows of data into a table
- UPDATE: Modifies existing data in a table
- DELETE: Deletes (removes) rows of data from a table