- #36
I like Serena
Homework Helper
MHB
- 16,336
- 258
If an employee does not have a manager, then the "vorgesetzt" field should be unspecified.mathmari said:This is only the result that the employee has a manager, right? We have to print also the employees that have no manager, right? Do we write this condition in the below form somehow? :unsure:
WHERE employee.vorgesetzt = manager.persnr OR (employee.vorgesetzt != ALL (SELECT manager.persnr FROM personal)
We should be able to test that with "employee.vorgesetzt IS NULL".
Still, we might not be able to easily combine that in 1 query.
So we might have 2 queries that we can combine with UNION.
Last edited: