Hi
i have the table employee with columns emp_id, emp_name, salary, dep_id and the another table department with columns dep_id, dep_name, manager.
dep_id is the foreign key for employee table.
i want the query for retrieving emp_id, salary, dep_id i.e. the employee who got maximum salary in each department using group by
i have the table employee with columns emp_id, emp_name, salary, dep_id and the another table department with columns dep_id, dep_name, manager.
dep_id is the foreign key for employee table.
i want the query for retrieving emp_id, salary, dep_id i.e. the employee who got maximum salary in each department using group by
Comment