Ask Question
3 January, 00:40

Write an SQL statement to show the sum of HoursWorked for each Type of OWNER but exclude services of employees who have an ExperienceLevel of Junior and exclude any Type with less than three members.

+4
Answers (1)
  1. 3 January, 02:33
    0
    select sum (HoursWorked)

    from OWNER

    where ExperienceLevel 'Junior'

    group by ExperienceLevel

    having count (*) > = 3

    Explanation:

    First use the sum function on HoursWorked column of OWNER table. Then put the required condition of not including employees with experience level of Junior. And then use group by function to bulk the results by experience level and group only results with equal to or more than 3 records.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an SQL statement to show the sum of HoursWorked for each Type of OWNER but exclude services of employees who have an ExperienceLevel ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers