List the department IDs for those departments that have less than 5 employees:

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
List the department IDs for those
departments that have less than 5
employees:
Employee
Did Salarycode
Ename
Eid
Ephone
Samer
15
23
2345
70092485
Sarah
13
12
5088
71092246
Ahmad 4
26
7712
03099348
Jalal
15
22
9664
76093148
Elie
8
23
3054
70092729
Fadi
24
2976
03091945
Layal
9
21
4490
71099380
Select one:
a. SELECT Did FROM Employee GROUP
BY Did HAVING SUM(Eid) < 5;
O b. SELECT Did, COUNT(Eid) FROM
Employee GROUP BY Did;
O c. None of these
d. SELECT Did FROM Employee GROUP
BY Did HAVING COUNT(Eid) < 5;
Transcribed Image Text:List the department IDs for those departments that have less than 5 employees: Employee Did Salarycode Ename Eid Ephone Samer 15 23 2345 70092485 Sarah 13 12 5088 71092246 Ahmad 4 26 7712 03099348 Jalal 15 22 9664 76093148 Elie 8 23 3054 70092729 Fadi 24 2976 03091945 Layal 9 21 4490 71099380 Select one: a. SELECT Did FROM Employee GROUP BY Did HAVING SUM(Eid) < 5; O b. SELECT Did, COUNT(Eid) FROM Employee GROUP BY Did; O c. None of these d. SELECT Did FROM Employee GROUP BY Did HAVING COUNT(Eid) < 5;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning