Exam 7: Introduction to Structured Query Language Sql

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The SQL command that allows a user to permanently save data changes is _____.

Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
Verified

C

What are the four different types of results that can be returned from a subquery?

Free
(Essay)
4.8/5
(37)
Correct Answer:
Verified

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.

Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
Verified

B

The _____ clause of the GROUP BY statement operates very much like the WHERE clause in the SELECT statement.

(Short Answer)
4.9/5
(34)

The SQL data manipulation command HAVING:

(Multiple Choice)
4.8/5
(35)

The _____ command restricts the selection of grouped rows based on a condition.

(Multiple Choice)
5.0/5
(39)

Explain the SQL function categories.

(Essay)
4.7/5
(27)

What type of command does this SQL statement use? What type of command does this SQL statement use?

(Multiple Choice)
4.8/5
(39)

The _____ operator could be used in place of INTERSECT if the DBMS does not support it.

(Short Answer)
4.7/5
(34)

SQL allows the use of logical restrictions on its inquiries such as OR, AND, and NOT.

(True/False)
4.9/5
(29)

The _____ function returns the current system date in MS Access.

(Multiple Choice)
4.9/5
(39)

The _____ specification is used to avoid having duplicated values in a column.

(Short Answer)
4.8/5
(36)

A(n) _____ is a query that is embedded (or nested) inside another query.

(Multiple Choice)
4.8/5
(40)

A(n) _____ is an alternate name given to a column or table in any SQL statement.

(Multiple Choice)
4.9/5
(34)

You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.

(True/False)
4.8/5
(25)

The syntax of theEXCEPT statement in Oracle is _____.

(Short Answer)
4.7/5
(30)

According to the rules of precedence, which of the following computations should be completed first?

(Multiple Choice)
4.9/5
(27)

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.

(Short Answer)
4.9/5
(38)

The SQL aggregate function that gives the number of rows containing non-null values for a given column is _____.

(Multiple Choice)
4.9/5
(42)

An alias is especially useful when a table must be joined to itself in a(n) _____ query.

(Short Answer)
4.8/5
(42)
Showing 1 - 20 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)