Exam 7: Introduction to Structured Query Language Sql
The SQL command that allows a user to permanently save data changes is _____.
C
What are the four different types of results that can be returned from a subquery?
A subquery can return one or more values.
One single value (one column and one row):
This subquery is used anywhere a single value is expected, as in the right side of a comparison expression.An example is the preceding UPDATE subquery, in which an average price is assigned to the product's price.When a value is assigned to an attribute, a single value is assigned and not a list of them.Therefore, the subquery must return only one value (one column, one row).If the query returns multiple values, the DBMS generates an error.
A list of values (one column and multiple rows):
This type of subquery is used anywhere a list of values is expected, such as when using the IN clause-for example, when comparing the vendor code to a list of vendors.Again, in this case, there is only one column of data with multiple value instances.This type of subquery is used frequently in combination with the IN operator in a WHERE conditional expression.
A virtual table (multicolumn, multirow set of values):
This type of subquery can be used anywhere a table is expected, such as when using the FROM clause.
The fourth result that a subquery can return is no value at all.It is called NULL.
A(n) _____ join performs a relational product (also known as the Cartesian product) of two tables.
B
The _____ clause of the GROUP BY statement operates very much like the WHERE clause in the SELECT statement.
The _____ command restricts the selection of grouped rows based on a condition.
The _____ operator could be used in place of INTERSECT if the DBMS does not support it.
SQL allows the use of logical restrictions on its inquiries such as OR, AND, and NOT.
The _____ function returns the current system date in MS Access.
The _____ specification is used to avoid having duplicated values in a column.
A(n) _____ is a query that is embedded (or nested) inside another query.
A(n) _____ is an alternate name given to a column or table in any SQL statement.
You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.
According to the rules of precedence, which of the following computations should be completed first?
The _____statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.
The SQL aggregate function that gives the number of rows containing non-null values for a given column is _____.
An alias is especially useful when a table must be joined to itself in a(n) _____ query.
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)