Midterms Flashcards

1
Q

This clause is used to specify the number of records to return

A

Limit Clause

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

This is useful on large tables with thousands of records. Returning a large number of records can impact performance.

A

Limit Clause

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

This operator displays a record if all the conditions separated by this operator are true

A

AND operator

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

This operator displays a record if any of the conditions separated by this operator is True

A

Or Operator

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

This is a function where it returns the smallest value of the selected column

A

MIN() function

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

This function returns the largest value of the selected column

A

MAX() function

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

This function return the number of rows that matches a specified criterion

A

COUNT() function

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

This function returns the average value of a numeric column

A

AVG() function

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

This function returns the total sum of a numeric column

A

SUM() function

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

This operator is used in a WHERE clause to search for a specified pattern in a column

A

LIKE operator

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

What are the two wildcards often used in conjunction with the LIKE operator

A

Percent Sign - %
Underscore Sign - _

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

This represents zero, one, or multiple characters

A

Percent Sign

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

This represents one, single character

A

Underscore Sign

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

True or False:
The percent and underscore sign cannot be used in combinations

A

False (It can actually used in combinations)

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

Like Operator Descriptions:
WHERE CustomerName LIKE ‘a%’

A

Finds any values that start with “a”

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

Like Operator Descriptions:
WHERE CustomerName LIKE ‘%a’

A

Finds any values that ends with “a”

17
Q

Like Operator Descriptions:
WHERE CustomerName LIKE ‘%or%’

A

Find any values that have “or” in any position

18
Q

Like Operator Descriptions:
WHERE CustomerName LIKE ‘_r’

A

Finds any values that have “r” in the second position

19
Q

Like Operator Descriptions:
WHERE CustomerName LIKE ‘a _ _’

A

Finds any values that start with “a” and are at least 2 characters in length

20
Q

Like Operator Descriptions:
WHERE CustomerName LIKE ‘a _ _ _’

A

Finds any values that start with “a” and are at least 3 characters in length

21
Q

Like Operator Descriptions:
WHERE CustomerName LIKE ‘a%o’

A

Finds values that start with “a” and ends with “o”

22
Q

This character is used to substitute one or more characters in a string

A

Wildcard character

23
Q

These characters are used with the LIKE operator.

A

Wildcard Characters

24
Q

The LIKE operator is used in a _________ to search for a specified pattern in a column.

A

WHERE clause

25
This allows you to specify multiple values in a WHERE clause
IN Operator
26
True or False: The IN operator is a shorthand for multiple OR conditions
True
27
This operator selects values within a given range.
BETWEEN operator
28
What are the values that can select in a BETWEEN operator?
Numbers, Text, or Dates.
29
True or False: The BETWEEN operator is inclusive: begin and end values are included.
True
30
These are used to give a table, or a column in a table, a temporary name.
Aliases
31
These are often used to make column names more readable
Aliases
32
True or False: An alias only exists for the duration of that query.
True
33
What is the keyword if an alias is created?
"AS" keyword
34
This clause is used to combine rows from two or more tables, based on a related column between them.
JOIN clause