CSE 414 Section 6:
Midterm Prep
November 5th, 2026
Announcements
Database Fundamentals
SQL Basics
SQL Joins
SQL Joins (2)
Inner join - only keep matching rows
Left join - all left rows + matching right rows
Right join - all right rows + matching left rows
Full join - all rows from both sides
Self join - Join a table with itself
Cartesian product - cross join (all possible combinations of rows)
6
SQL Aggregates
SQL Filtering & Conditions
SQL Logical Evaluation Order
FWGHOSTM
(From, Where, Group By, Having, Order By, Select)
9
SQL Subqueries
SQL Relational Algebra
11
Operator | Symbol | Description |
Selection | σ (sigma) / WHERE | Filters rows that satisfy a condition. |
Projection | π (pi) / SELECT | Chooses specific attributes (columns). Eliminates duplicates in pure RA. |
Join | ⋈ (bowtie) / JOIN | Combines rows based on a join condition |
Grouping & Aggregation | γ (gamma) / GROUP BY | Groups rows and computes aggregates |
Sorting | τ (tau) / ORDER BY | Sorts rows by specified attributes |
Duplicate Elimination | δ (delta) / DISTINCT | Removes duplicate rows |
SQL Relational Algebra Format
12