My first post here. I have an assignment to deliver in mysql and I have found a difficulty in 2 questions.
First and foremost the tables of a database are the following:
departments (dep_no, dep_name)
dept_emp (emp_no, dept_no, from_date, to_date)
dept_manager (dept_no, emp_no, from_date, to_date)
employees (emp_no, birthdate, first_name, last_name, gender, hire_date)
salaries (emp_no, salary, from_date to_date)
titles (emp_no, title, form_date, to_date)
and the 2 questions that I am having difficulty on are those 2 :
Which department pays the highest salary currently and who is the department manager?
What is the current average salary of Marketing Department?
I would be really thankful for some help.
Cheers!