Problem Description

In table StudentMarks(student_id, exam_date, subject, marks), a student can have only one record per subject per exam_date. Add the right constraint.

Input Format

SQL DDL

Output Format

DDL statement(s)

Sample Test Case

Input:
StudentMarks(student_id, exam_date, subject, marks)
Output:
Constraint added

Constraints

Assume table exists

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next