LeetCode solutions

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

Read the problem on LeetCode View on GitHub

SQL

Accepted on LeetCode — runtime 999ms, memory 0.0B, accepted 2025-12-29.

sql
SELECT eu.unique_id, e.name
FROM Employees e
LEFT JOIN EmployeeUNI eu ON e.id = eu.id

Source