3.1 Special operators

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

4 Terms

1
New cards

BETWEEN

  • operator provides an alternative way to determine if a value is between two other values. The operator is written value BETWEEN minValue AND maxValue and is equivalent to:

  • value >= minValue AND value <= maxValue. // These are both inclusive. Includes both minValue and maxValue.

2
New cards

LIKE

  • when used in a WHERE clause, matches text against a pattern using the two wildcard characters % and _.

  • % matches any number of characters. e.g. LIKE 'L%t' matches "Lt", "Lot", "Lift", and "Lol cat".

  • _ matches exactly one character. e.g. LIKE 'L_t' matches "Lot" and "Lit" but not "Lt" and "Loot".

3
New cards

ORDER BY

  • clause orders selected rows by one or more columns in ascending (alphabetic or increasing) order. Low -> High. e.g. A -> a.

  • DESC reverses order High -> Low.

4
New cards

DESC

keyword with the ORDER BY clause orders rows in descending order.