Exam 7: Advanced SQL

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

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

(True/False)
4.8/5
(82)

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
(76)

When a subquery is used in the FROM clause,it is called a(n)________.

(Short Answer)
4.7/5
(64)

In order to embed SQL inside of another language,the ________ statement must be placed before the SQL in the host language.

(Multiple Choice)
4.8/5
(65)

Discuss the differences between an equi-join,natural join and outer join.

(Essay)
4.9/5
(75)

________ are extensions defined in SQL-99 that include the capability to create and drop modules of code stored in the database schema across user sessions.

(Short Answer)
4.8/5
(88)

A ________ is a temporary table used in the FROM clause of an SQL query.

(Multiple Choice)
4.9/5
(80)

A join operation:

(Multiple Choice)
4.9/5
(81)

________ consists of hard-coded SQL statements within another language,such as Java or C.

(Short Answer)
4.9/5
(77)

Discuss some of the SQL:200n enhancements and extensions to SQL

(Essay)
4.8/5
(76)

In SQL,a(n)________ subquery is a type of subquery in which processing the inner query depends on data from the outer query.

(Multiple Choice)
4.7/5
(89)

One major disadvantage of the outer join is that information is easily lost.

(True/False)
5.0/5
(69)

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

(Short Answer)
4.9/5
(73)

The MERGE command:

(Multiple Choice)
4.9/5
(84)

A ________ is a stored subroutine that returns only one value and has only input parameters.

(Short Answer)
4.7/5
(80)

EXISTS will take a value of ________ if the subquery returns an intermediate results table which contains one or more rows.

(Short Answer)
4.9/5
(77)

________ takes a value of true if a subquery returns an intermediate results table which contains one or more rows.

(Multiple Choice)
4.7/5
(81)

IF-THEN-ELSE logical processing cannot be accomplished within an SQL statement.

(True/False)
4.9/5
(90)

What is the difference between a trigger and a routine?

(Essay)
4.8/5
(73)

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

(Short Answer)
4.7/5
(84)
Showing 81 - 100 of 111
close modal

Filters

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