SQL Practice Logo

SQLPractice Online

Level 5 - SeniorScenario-Based Questions

Scenario: Migration from INT to BIGINT PK

Interviewer prompt: user_id INT is close to overflow. Design SQL migration plan to BIGINT with minimal downtime.

Schema Context

users(user_id INT PK), orders(user_id FK)