1509. Replace Employee ID With The Unique Identifier
My accepted SQL solution to LeetCode problem 1509, Replace Employee ID With The Unique Identifier, running in 999ms.
- Difficulty: Easy
- SQL
- Runtime 999ms
- Memory 0.0B
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
SQL
Accepted on LeetCode — runtime 999ms, memory 0.0B, accepted 2025-12-29.
SELECT eu.unique_id, e.name
FROM Employees e
LEFT JOIN EmployeeUNI eu ON e.id = eu.id