I have a database in MS Access 2003 to do the regular operations for administration in my office. I need to make a query in SQL to find out which employees who have been working with all the projects involved with a certain building.
The relation is like this:
EMPLOYEE - PROJECTPARTICIPATION - PROJECT - BUILDING.
As far as I can see, this problem must be solved with a multiple EXISTS-query. The "BuildingID" (Primary key in BUILDING is in case =4.)
The definition of the table is like this (The primary keys are written in CAPITAL LETTERS):
Employee (EMPLOYEID, Name, ...)
Projectparticipation (EMPLOYEEID, PROJECTID, DATE)
Project (PROJECTID, BUILDINGID, StartDate, EndDate, Description, ...)
Building (BUILDINGID, Size, Height, ...)
How can I express this query in SQL in MS Access 2003?
Ole Helge
The relation is like this:
EMPLOYEE - PROJECTPARTICIPATION - PROJECT - BUILDING.
As far as I can see, this problem must be solved with a multiple EXISTS-query. The "BuildingID" (Primary key in BUILDING is in case =4.)
The definition of the table is like this (The primary keys are written in CAPITAL LETTERS):
Employee (EMPLOYEID, Name, ...)
Projectparticipation (EMPLOYEEID, PROJECTID, DATE)
Project (PROJECTID, BUILDINGID, StartDate, EndDate, Description, ...)
Building (BUILDINGID, Size, Height, ...)
How can I express this query in SQL in MS Access 2003?
Ole Helge