Founding member sale: Pro is $5/month, locked in for as long as you stay. Ends Dec 31. Claim it →

dbo schema Higher-Ed ODS

Schema Reference

18 tables modeled after a real Student Information System. ods_person is the central hub — every student, faculty member, and applicant starts there.

Foreign Keys by Area

Columns With NULLs

These are sparse on purpose — real SIS data is. An inner join, a WHERE, or COUNT(column) on any of them drops the NULL rows without an error, so check the shape before you trust a total. Use COUNT(*) to count rows, and AVG() already ignores NULLs.

ColumnNULL rows
ods_applications.appl_hs_gpa29 of 200
ods_applications.appl_hs_class_rank_pct41 of 200
ods_applications.appl_sat_total68 of 200
ods_applications.appl_act_composite105 of 200
ods_person.first_gen_ind14 of 220
ods_person.middle_name136 of 220
ods_faculty.fac_special_status34 of 35

Entirely NULL — every row, so there is nothing to select:

ods_acad_programs.acpg_end_date · ods_courses.crs_end_date · ods_advisor_assignments.saa_end_date · ods_stu_acad_levels.stpr_end_date · ods_address.addr_line2 · ods_address.addr_effective_end

Common Join Patterns

Student full name

SELECT p.id, p.first_name, p.last_name
FROM ods_person p
JOIN ods_students s ON s.students_id = p.id

Faculty headcount by department

SELECT d.dept_desc, COUNT(*) AS faculty_count
FROM ods_faculty f
JOIN ods_departments d ON d.departments_id = f.fac_dept
GROUP BY d.dept_desc
ORDER BY faculty_count DESC

Applicants with a reported SAT

SELECT AVG(appl_sat_total) AS avg_sat,
       COUNT(appl_sat_total)        AS reported,
       COUNT(*)                     AS applicants
FROM ods_applications

Enrollments with grades

SELECT p.first_name, p.last_name,
       cs.scs_course_name, cs.scs_final_grade
FROM ods_stu_course_sec cs
JOIN ods_person p ON p.id = cs.scs_student
WHERE cs.scs_status = 'A'

dbo schema · 18 tables

PostgreSQL