Exam 7: Advanced SQL

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

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.

Free
(True/False)
4.9/5
(24)
Correct Answer:
Verified

True

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

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

D

User-defined transactions can improve system performance because:

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

A

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

(Multiple Choice)
4.9/5
(40)

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);

(True/False)
4.8/5
(38)

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

(True/False)
4.7/5
(32)

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

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(34)

A procedure is run by calling it by its name.

(True/False)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(28)

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?

(Essay)
4.9/5
(27)

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

(Multiple Choice)
4.9/5
(36)

The UNION clause is used to:

(Multiple Choice)
4.8/5
(34)

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:

(Multiple Choice)
4.8/5
(33)

The MERGE command:

(Multiple Choice)
4.9/5
(40)

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.

(True/False)
4.9/5
(29)

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

(True/False)
4.9/5
(40)

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

(Essay)
4.8/5
(27)

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

(True/False)
4.9/5
(44)

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

(True/False)
4.9/5
(43)
Showing 1 - 20 of 107
close modal

Filters

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