Lab Exercises¶
Lab 1: Conditional PL/SQL¶
Due: February 9, 2026
Practice writing PL/SQL blocks with IF/ELSIF/ELSE logic, procedures, and functions.
Key exercises:
- Write
AddMe— basic enrollment procedure - Write
AddMe2— enrollment with standing check - Classify students by GPA
See Activity: Conditionals for practice problems.
Lab 2: SQL in PL/SQL¶
Due: February 25, 2026
Part 3 exercises (Q1-Q7) building increasingly sophisticated enrollment procedures:
AddMe— basic insertAddMe2— standing validationAddMe3— credit limit check (≤ 15 per semester)Update_GPA— weighted GPA calculationValidate_Student— existence checkValidate_Credit_Limit— reusable credit validation- Combine
Validate_Credit_LimitintoAddMe
See SQL in PL/SQL Exercises for all problems and solutions.
Lab 3: Cursors¶
Practice using explicit cursors and cursor FOR loops:
p_update_standing— update all students' standing based on total credits- Enrollment report — nested cursors for formatted output
See Cursor Exercises for problems and solutions.