module 7 part #3 Flashcards

1
Q

The special operator used to check whether an attribute value matches a given string pattern is _____.
a. BETWEEN b. IS NULL
c. LIKE d. IN

A

c. LIKE

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

A(n) _____ is a query that is embedded (or nested) inside another query.
a. alias
b. operator
c. subquery
d. view

A

c. subquery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Which of the following queries is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another?
    a. SELECT ONLY V_CODE FROM PRODUCT;
    b. SELECT UNIQUE V_CODE FROM PRODUCT;
    c. SELECT DIFFERENT V_CODE FROM PRODUCT;
    d. SELECT DISTINCT V_CODE FROM PRODUCT;
A

d. SELECT DISTINCT V_CODE FROM PRODUCT;

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

A(n) _____ is an alternate name given to a column or table in any SQL statement.
Alias
Data type
Stored function
Trigger

A

Alias

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

A(n) _____ query specifies which data should be retrieved and how it should be filtered, aggregated, and displayed.
a. INSERT
b. SELECT
c. COMMIT
d. UPDATE

A

b. SELECT

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

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

A

c. Operations within parentheses

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

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

A

SELF JOIN

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