Quiz 3 Flashcards

1
Q

When coded in a WHERE clause, which search condition will return invoices when PaymentDate is not null and InvoiceTotal is greater than or equal to $500?

PaymentDate IS NULL AND InvoiceTotal > 500

PaymentDate IS NOT NULL OR InvoiceTotal >= 500

PaymentDate IS NOT NULL AND InvoiceTotal >= 500

NOT (PaymentDate IS NULL AND InvoiceTotal <= 500)

A

PaymentDate IS NOT NULL AND InvoiceTotal >= 500

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

Which clause of the SELECT statement names the table that contains the data to be retrieved?

ORDER BY

WHERE

FROM

SELECT

A

FROM

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

When coded within a SELECT clause, which TOP clause will return a result set consisting of the ten largest invoice numbers?

TOP InvoiceNumber, InvoiceTotal

TOP 10 InvoiceTotal

TOP 10 InvoiceNumber

TOP 10 PERCENT InvoiceNumber

TOP 10 PERCENT WITH TIES InvoiceNumber

A

TOP 10 InvoiceNumber

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

word that has a predefined meaning

A

Keyword

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

Expression that evaulates to true or false

A

Boolean Expression or predicate

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

A different name specified for a column (through the use of AS clause)

A

Column alias

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

combination of one or more character columns and literal values

A

string expression

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

Something enclosed in single quotation marks

A

literal value

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

Arithmetic operators

A

(*?%+-)

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

Performs an operation and returns a result

A

Function

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

Value passed to a function

A

Parameter or argument

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

One sort nested within another sort

A

Nested sort

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

Represent a value that is unknow, unavailable, or not applicable.

A

NULL Value

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

Which wildcard character do you use in the SELECT clause to return all of the columns from the base table?

-

=

+

*

A

*

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

Which of the following is not a valid column alias name?

“Total Sales”

Total

TotalSales

Total Sales

A

Total Sales (Cause of the space)

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

Which operator do you use to concatenate character strings in a string expression?

+

-

=

*

A

+

17
Q

What keyword do you code at the end of the ORDER BY clause to sort the records that are retrieved by a SELECT statement in descending sequence?

ALL

DISTINCT

ASC

DESC

A

DESC

18
Q

When you code an ORDER BY clause, which of the following can you not use?

column expression

column name

column alias

column data type

A

column data type

19
Q

concatenation operator

A

+ sign