Answered step by step
Verified Expert Solution
Question
1 Approved Answer
List the maximum and minimum salary of current employee and their department name grouped by department. I have this answer below in pic, but when
List the maximum and minimum salary of current employee and their department name grouped by department.
select d.DName, Max (.Salary) as "Max Salary", MIN (J.Salary) as "Min salary" from jobhistory , Employee e, Depatment d where e, EmpNo=j. EmpNo , and d. DepNo e. DepNo and j.enddate is null group by d.DName,j.Salary I have this answer below in pic, but when I check the answer in this link it's not the write answer!!
http://db.grussell.org/sql/interface.cgi?tn=Tutorial%203&qn=9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started