Filters
Question type

Study Flashcards

SQL statements can be included in another language, such as C or Java.

A) True
B) False

Correct Answer

verifed

verified

All of the following are advantages of SQL-invoked routines EXCEPT:


A) flexibility.
B) efficiency.
C) sharability.
D) security.

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

Correct Answer

verifed

verified

User-defined transactions can improve system performance because:


A) transactions are processed as sets, reducing system overhead.
B) transactions are mapped to SQL statements.
C) speed is decreased due to query optimization.
D) all triggers delete rows.

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

Correct Answer

verifed

verified

A

What is a derived table? When is it used? Can you describe any situations where you would have to use it over a subquery in the WHERE clause?

Correct Answer

verifed

verified

A derived table can be created by placin...

View Answer

Using an outer join produces this information: rows that do not have matching values in common columns are not included in the result table.

A) True
B) False

Correct Answer

verifed

verified

A transaction is the complete set of closely related update commands that must all be done, or none of them done, for the database to remain valid.

A) True
B) False

Correct Answer

verifed

verified

A type of query that is placed within a WHERE or HAVING clause of another query is called a:


A) master query.
B) subquery.
C) superquery.
D) multi-query.

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

When is it better to use a subquery over using a join?

Correct Answer

verifed

verified

Often, a subquery and join will return t...

View Answer

Extensions defined in SQL-99 that include the capability to create and drop modules of code stored in the database schema across user sessions are called:


A) stored procedures.
B) Persistent Stored Modules.
C) flow control modules.
D) global triggers.

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

Correct Answer

verifed

verified

A procedure is run by calling it by its name.

A) True
B) False

Correct Answer

verifed

verified

The following SQL statement is an example of a correlated subquery. select first_name, last_name, total_sales from salesman s1 where total_sales > all (select total_sales from salesman s2 where s1.salesman_id != s2.salesman_id);

A) True
B) False

Correct Answer

verifed

verified

The UNION clause is used to:


A) combine the output from multiple queries into a single result table.
B) join two tables together to form one table.
C) find all rows that do not match in two tables.
D) find all rows that are in one table, but not the other.

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

Correct Answer

verifed

verified

A new set of analytical functions added in SQL:2008 is referred to as:


A) OLAF functions.
B) MOLAP functions.
C) average functions.
D) OLAP functions.

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

Correct Answer

verifed

verified

D

A natural join is the same as an equi-join, except that it is performed over matching columns that have been defined with the same name, and one of the duplicate columns is eliminated.

A) True
B) False

Correct Answer

verifed

verified

True

________ use the result of the outer query to determine the processing of the inner query.


A) Correlated subqueries
B) Outer subqueries
C) Inner subqueries
D) Subqueries

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

Correct Answer

verifed

verified

Joining tables or using a subquery may produce the same result.

A) True
B) False

Correct Answer

verifed

verified

RDBMSs store database definition information in system-created tables which can be considered a data dictionary.

A) True
B) False

Correct Answer

verifed

verified

The ________ operator is used to combine the output from multiple queries into a single result table.


A) INTERSECT
B) DIVIDE
C) COLLATE
D) UNION

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

Correct Answer

verifed

verified

All of the following are new data types added in SQL:2008 EXCEPT:


A) BIGINT.
B) BIT.
C) MULTISET.
D) XML.

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

Correct Answer

verifed

verified

The MERGE command:


A) allows one to combine the INSERT and UPDATE operations.
B) allows one to combine the INSERT and DELETE operations.
C) joins 2 tables together.
D) is always a single table operation.

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

Correct Answer

verifed

verified

Showing 1 - 20 of 107

Related Exams

Show Answer