IT 233 — 1 lecture hour | Second half of u3-c3 note
| Object | Meaning | College cue |
|---|---|---|
| Table | One entity type | STUDENT, COURSE |
| Row / Column | Instance / property | S101 / Address |
| PK | Unique per row | StudentID, CourseID |
| FK | PK copy linking tables | StudentID in ENROLLMENT |
| Constraint | DBMS rule | Grade in list, email unique |
STUDENT: S101 Sita/Bhaktapur; S102 Ram/Lalitpur
ENROLLMENT: (S101,IT233,A), (S101,IT204,B+), (S102,IT233,A−)
Rules: address once; PK blocks dupes; FK blocks orphans; grade check.
Build Rs.195,000; run Rs.7,500/mo; saves 28h/mo @Rs.550 + Rs.10,800/term ×3.
Gross 15,400+2,700=Rs.18,100. Net Rs.10,600/mo. Payback 19 mo.
Full case: u3-c3 note.