1.6 Selecting Rows Flashcards

1
Q

operator / operands

A

An operator is a symbol that computes a value from one or more other values, called operands: Arithmetic operators compute numeric values from numeric operands. Comparison operators compute logical values TRUE or FALSE. Operands may be numeric, character, and other data types. Logical operators compute logical values from logical operands.

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

unary operator

A

A unary operator has one operand.
ex: logical operator NOT

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

binary operator

A

A binary operator has two operands.

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

expression

A

An expression is a string of operators, operands, and parentheses that evaluates to a single value. Operands may be column names or fixed values. The value of an expression may be any data type.

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

operator precedence

A

Operators in an expression are evaluated in the order of operator precedence, shown in the table below. Operators of the same precedence are evaluated from left to right. Regardless of operator precedence, expressions enclosed in parentheses are evaluated before any operators outside the parentheses are applied.

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

SELECT / FROM

A

The SELECT statement selects rows from a table. The statement has a SELECT clause and a FROM clause. The FROM clause specifies the table from which rows are selected. The SELECT clause specifies one or more expressions, separated by commas, that determine what values are returned for each row.

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

result table

A

The SELECT statement returns a set of rows, called the result table.

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

LIMIT

A

MySQL has a LIMIT clause that limits the number of rows returned by a SELECT statement.

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

condition

A

A condition is an expression that evaluates to a logical value.

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

WHERE

A

A SELECT statement has an optional WHERE clause that specifies a condition for selecting rows. A row is selected when the condition is TRUE for the row values. A row is omitted when the condition is either FALSE or NULL.

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

Arithmetic operators

A

+ - * / % ^
compute numeric values from numeric operands.

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

Comparison operators

A

= != <> < <= > >=
compute logical values and returns TRUE or FALSE.

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

Logical operators

A

AND OR NOT
compute logical values from logical operands.

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