Hi all,
I'm having a complete brain fart moment so i figured i'd ask away here. I have 3 tables that look like this
Equipment Table
EquipmentID | LocationID
-------------------------
1 | 2
2 | 2
3 | 1
4 | 2
5 | 3
6 | 3
Location Table
LocationID | LocationName
--------------------------
1 | Pizza Hut
2 | Giordanos
3 | Lou Malnati's
Service Table
LocationID | EquipmentID | Status
-----------------------------------
2 | 1 | Serviced
2 | 2 | Not Yet Serviced
2 | 4 | Not Yet Serviced
3 | 5 | Serviced
I need a way to list all locations that have had one or more equipment(s) serviced, but not all of the equipments at the location have been serviced yet.
So for the example above it would return the following results
LocationID | ServicedEquipmentID | NotServicedEquipmentIDS | LocationStatus
------------------------------------------------------------------------------
2 | 1 | 2, 4 | Partially Serviced
3 | 5 | 6 | Partially Serviced
Thanks for any help!