Chapter 7 Study Questions Flashcards

1
Q

A ________ is a SELECT statement that is coded within another SQL statement.

A

subquery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A subquery coded within another subquery is also known as a ______ subquery.

A

nested

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An ____________ subquery is executed once for the entire query.

A

uncorrelated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A __________ subquery refers to a value that is provided by a column in the main query and is executed once for each row that is processed by the main query.

A

correlated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The ______ operator tests whether the subquery returns a result set (i.e. one or more rows are returned by the subquery).

A

EXISTS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Use the ___ ______ operator to test whether no rows are returned by the subquery.

A

NOT EXISTS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A result set referred to as an ______ ____ is one coded in the FROM clause of a SELECT statement.

A

inline view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

_____ may be used to describe the different parts of a complex query without changing how the query operates.

A

Alias

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To code a single-line comment start a line with two ______.

A

dashes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

__________ is code that represents the intent of a query but does not necessarily use SQL code.

A

Pseudocode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly