- Joined
- Jun 29, 2022
- Messages
- 28
- Reaction score
- 0
Consider an employees table:
- employee_id (int)
- employee_name (varchar)
- department (varchar)
- joining_date (date)
- salary (decimal)
- Highest Earner by Department: Find the employee with the highest salary in each department.
- Average Salary by Department and Year: Calculate the average salary for each department per year.
- Longest Serving Employee: Identify the employee with the longest tenure.