CSD123 - Week #2

call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

Review Deck

Last updated 10:36 PM on 1/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Add student to class section state
Add studentsNo students in these sections. Invite them to track progress!

14 Terms

1
New cards

SQL

Structured Query Language: A declarative language used to talk to Relational Databases.

2
New cards

Declarative Language

You describe WHAT you want (e.g., "Get milk"), not HOW to get it (e.g., "Walk to store").

3
New cards

Order of Execution (Mental Model)

  1. FROM (Find Table) -> 2. WHERE (Filter Rows) -> 3. SELECT (Return Columns).

4
New cards

The "Quote" Rule

Numbers are naked (e.g., 50). Text gets dressed in single quotes (e.g., 'Kevin').

5
New cards

SELECT *

Select ALL columns from a table.

6
New cards

WHERE clause

Used to filter rows based on specific conditions.

7
New cards

OR Operator

Logic that EXPANDS results (returns rows matching Condition A OR Condition B).

8
New cards

AND Operator

Logic that RESTRICTS results (returns rows matching BOTH Condition A AND Condition B).

9
New cards

LIKE Operator

Used for pattern matching text (e.g., finding names that start with "B").

10
New cards

% Wildcard

Represents "Zero, One, or Many" characters (e.g., 'B%' finds Bob, Banana, B).

11
New cards

_ Wildcard

Represents "Exactly One" character.

12
New cards

IS NULL

The correct way to check for empty/unknown values (you cannot use = NULL).

13
New cards

ORDER BY default

Ascending (ASC) - A to Z, or Low to High.

14
New cards

DISTINCT

Keyword used to remove duplicate rows from the result set.