Problem Description

Table Teaching(teacher, subject, room). Rule: each subject is taught in exactly one room, but a teacher can teach many subjects. Show BCNF decomposition in SQL.

Input Format

SQL DDL

Output Format

DDL statement(s)

Sample Test Case

Input:
Teaching(teacher, subject, room)
Output:
Decomposed tables

Constraints

subject -> room violates BCNF

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next