Employee table by departmentId and selecting the maximum salary.Employee table with the Department table to get the department names along with the employee details.Department.name, Employee.name, and Employee.salary) to form the final result set.erDiagram
Employee ||--o{ Department : belongs
Employee {
int id PK
varchar name
int salary
int departmentId FK
}
Department {
int id PK
varchar name
}