You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,7 @@ Because this project necessitated a framework to enable consistent daily practic
186
186
| 155 |[Actors and Directors Who Cooperated At Least Three Times](https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times/description/)|[Solution](solutions/155_actors_and_directors_who_cooperated_at_least_three_times.md)| LeetCode | Easy ||
Write a solution to calculate the bonus of each employee. The bonus of an employee is `100%` of their salary if the ID of the employee is *an odd number* and *the employee's name does not start with the character*`'M'`. The bonus of an employee is `0` otherwise.
11
+
12
+
Return the result table ordered by `employee_id`. [[Full Description](https://leetcode.com/problems/calculate-special-bonus/description/)]
13
+
14
+
## Submitted Solution
15
+
16
+
```sql
17
+
-- Submitted Solution
18
+
SELECT
19
+
employee_id
20
+
,CASE WHEN name NOT LIKE'M%'AND employee_id % 2!=0 THEN salary ELSE 0 END AS bonus
0 commit comments