Filters
Question type

Study Flashcards

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


A) Additions and subtractions
B) Multiplications and divisions
C) Operations within parentheses
D) Power operations

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

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


A) COUNT
B) MIN
C) MAX
D) SUM

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

A(n) _____ join performs a relational product (also known as the Cartesian product) of two tables.


A) full
B) cross
C) natural
D) equi-

E) B) and D)
F) C) and D)

Correct Answer

verifed

verified

B

The SQL data manipulation command HAVING:


A) restricts the selection of rows based on a conditional expression.
B) restricts the selection of grouped rows based on a condition.
C) modifies an attribute's values in one or more table's rows.
D) groups the selected rows based on one or more attributes.

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

What type of command does this SQL statement use? What type of command does this SQL statement use?   A)  set operator B)  natural join C)   old-style  join D)  procedural statement


A) set operator
B) natural join
C) "old-style" join
D) procedural statement

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

C

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.

Correct Answer

verifed

verified

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


A) alias
B) operator
C) subquery
D) view

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

The syntax of theEXCEPT statement in Oracle is _____.

Correct Answer

verifed

verified

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

Correct Answer

verifed

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.

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


A) DISPLAY
B) HAVING
C) FROM
D) CONVERT

E) C) and D)
F) All of the above

Correct Answer

verifed

verified

Explain the SQL function categories.

Correct Answer

verifed

verified

SQL functions fit into several broad cat...

View Answer

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


A) TO_DATE()
B) SYSDATE()
C) DATE()
D) TODAY()

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) alias
B) data type
C) stored function
D) trigger

E) A) and C)
F) All of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 75

Related Exams

Show Answer