Tag: 378. Replace Employee ID With The Unique Identifier
-
Leetcode SQL: 378. Replace Employee ID With The Unique Identifier
•
378. Replace Employee ID With The Unique Identifier SQL Code: SELECT eu.unique_id, [name] FROM Employees e WITH (NOLOCK) LEFT OUTER JOIN EmployeeUNI eu WITH (NOLOCK) ON e.id = eu.id; Explanation: SELECT eu.unique_id, [name]: This line specifies that we want to retrieve the unique_id from the EmployeeUNI table and the name…