Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Specify the departments which have >=2 employees and list of departments’ employees

User_GWKUZMay 31 2022 — edited May 31 2022

I have following tables
TABLE EMPLOYEE:
CreateTable_EMPLOYEE.png
TABLE DEPARTMENT:
CreateTable_DEPARTMENT.pngHere is the data of table DEPARTMENT:
DataTable_Department.pngAnd here is the code and the result of the code that Im trying to do:
CodevaDapAn_Cau5.pngI have done the 1st condition of the question that is count which department that have >=2 employees, but when I try to do the 2nd condition that is print out the list of department's employees right after each department, it show wrong data. Any suggestions? Tks.

This post has been answered by BluShadow on May 31 2022
Jump to Answer
Comments
Post Details
Added on May 31 2022
17 comments
4,078 views