Midterm Exam Prep

The Spring 2026 paper worked end-to-end — all four parts (concepts, relational algebra, ER diagram, SQL) with reveal-able solutions, diagrams, and a mnemonic for every topic.

Sections

Quick summary

EXAM: CSE 303 · Full marks 50 · 1 hr 30 min · answer ALL · partial grading ON.

PART 1 (CLO1) — DB Concepts            20 marks
   Define DB & DBMS · relational/NoSQL/cloud examples · DB users → roles.
PART 2 (CLO2) — Languages & Rel. Algebra
   DDL/DCL/DML/TCL table · Cartesian product · inner/outer joins · select.
PART 3 (CLO3) — ER Diagram             11 marks
   Keys · attribute types · strong/weak entity · relationships · full ER diagram.
PART 4 (CLO6) — SQL                    ~20 marks
   CREATE + INSERT · ALTER add/rename · CASE update · SELECT · GROUP BY/HAVING
   · EXCEPT set op · COUNT per group.

MNEMONICS:  PISM (DB traits) · RI·IACS (file drawbacks) · σπ∪−×ρ (6 RA ops)
            PLV (abstraction) · Super ⊇ Candidate ⊇ Primary (keys).

STRATEGY: partial grading is ON — write SOMETHING for every part. Bank Part 1 +
the CREATE-TABLE marks first, then spend time on the RA tables and ER diagram.