Problem Description

Create Departments(dept_id, dept_name) and Employees(emp_id, name, dept_id). Add FK so employee dept_id must exist in Departments.

Input Format

SQL DDL

Output Format

DDL statement(s)

Sample Test Case

Input:
Employees, Departments
Output:
Tables created with FK

Constraints

None

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next