Operators for WHERE Flashcards

1
Q

What does this symbol represent =

A

Equals
Example
SELECT city FROM world
WHERE city = ‘London’

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

What does this symbol represent >

A

Greater Than
Example
SELECT population FROM world
WHERE population > 100

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

What does this symbol represent

A

Less Than
Example
SELECT population FROM world
WHERE population < 100

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

What does this symbol represent >=

A

Greater than or equal
Example
SELECT population FROM world
WHERE population >= 100

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

What does this symbol represent <=

A

Less than or equal
Example
SELECT population FROM world
WHERE population <= 100

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

What does this symbol represent <>

A

Not Equal
Example
SELECT population FROM world
WHERE population <> 100

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

What does this symbol represent BETWEEN

A

Between a range
Example
SELECT population FROM world
WHERE population BETWEEN 100 and 200

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

What does this symbol represent LIKE

A

Search for a pattern
Example
SELECT city FROM world
WHERE city LIKE ‘%Lon%’

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

What does this symbol represent IN

A

specify multiple possible values for a column
Example
SELECT city FROM world
WHERE city IN (‘London’, ‘France’, ‘Germany’)

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