1789. Primary Department for Each Employee
Description
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| employee\_id | int |
| department\_id | int |
| primary\_flag | varchar |
+---------------+---------+
(employee\_id, department\_id) is the primary key for this table.
employee\_id is the id of the employee.
department\_id is the id of the department to which the employee belongs.
primary\_flag is an ENUM of type ('Y', 'N'). If the flag is 'Y', the department is the primary department for the employee. If the flag is 'N', the department is not the primary.ac
Previous1788. Maximize the Beauty of the GardenNext1790. Check if One String Swap Can Make Strings Equal
Last updated