
π Student Projects (College Reports) Β· Database ERD
Database design for online exams: courses, exams, questions and options, attempts, answers and results.
Drawing diagramβ¦
ER diagram for an online examination system: Student, Examiner, Course, Exam (belongs to a course, set by an examiner, with start time and duration), Question (in an exam, type MCQ or descriptive, marks), Option (for MCQ questions, with a correct flag), Attempt (a student taking an exam), Answer (an attempt's answer to a question) and Result (score and grade for an attempt).
erDiagram
COURSE ||--o{ EXAM : has
EXAMINER ||--o{ EXAM : sets
EXAM ||--|{ QUESTION : contains
QUESTION ||--o{ OPTION : offers
STUDENT ||--o{ ATTEMPT : makes
EXAM ||--o{ ATTEMPT : "taken in"
ATTEMPT ||--|{ ANSWER : records
QUESTION ||--o{ ANSWER : "answered by"
ATTEMPT ||--|| RESULT : produces
STUDENT {
int student_id PK
string name
string email
}
EXAMINER {
int examiner_id PK
string name
}
COURSE {
int course_id PK
string title
}
EXAM {
int exam_id PK
int course_id FK
int examiner_id FK
datetime start_time
int duration_min
}
QUESTION {
int question_id PK
int exam_id FK
string type
int marks
}
OPTION {
int option_id PK
int question_id FK
string text
boolean is_correct
}
ATTEMPT {
int attempt_id PK
int student_id FK
int exam_id FK
datetime submitted_at
}
ANSWER {
int answer_id PK
int attempt_id FK
int question_id FK
string response
}
RESULT {
int result_id PK
int attempt_id FK
decimal score
string grade
}Who uses a college library system and what each of them can do: members, the librarian and the system administrator.
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.
The main classes of a library system with attributes, methods and UML relationships.
The steps when a member borrows a book: checks, loan record and the copy status update.
What students, examiners and the administrator do in an online examination system.