Problem Description

Make sp_add_department safe if dept_id already exists: update name instead of failing.

Input Format

SQL procedure

Output Format

Procedure created

Sample Test Case

Input:
Departments
Output:
Procedure created

Constraints

Use upsert logic

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next