I have one table which contains the following fields:
StartDate, Unit, Location, Operation.
I want to run 2 checks:
1. To show if a Unit is in two different locations on the same day ?
Eg.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty B, Water - Is permitted.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty C, Water - Is Not.
2. To show if more than one different Unit is in the same Location on the same day.
Eg.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty B, Water - Is permitted.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship B, Jetty B, Water - Is Not.
I have tried 'count' but it get confused because Units are allowed to be in the same location twice on the same day.
Any help welcome. Thanks.
StartDate, Unit, Location, Operation.
I want to run 2 checks:
1. To show if a Unit is in two different locations on the same day ?
Eg.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty B, Water - Is permitted.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty C, Water - Is Not.
2. To show if more than one different Unit is in the same Location on the same day.
Eg.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship A, Jetty B, Water - Is permitted.
23 May 07, Ship A, Jetty B, Fuelling
23 May 07, Ship B, Jetty B, Water - Is Not.
I have tried 'count' but it get confused because Units are allowed to be in the same location twice on the same day.
Any help welcome. Thanks.