Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • The join is on iAssetID. It looks like your results show AssetEnter (iAssetId) as the same for all records, so I'd expect the Enter Time to follow suit. Commented Dec 10, 2014 at 17:50
  • looks like your code will list all of the entry and exit times, how do you know that the exit is related the a given entry? Commented Dec 10, 2014 at 17:52
  • I agree with mrtig. You need to define the relationship between the two aliases for vehicleMonitoringLog. Commented Dec 10, 2014 at 17:58
  • An asset can have more than one VehicleMonitoringLog with eEvent 6 or eEvent 7. Commented Dec 10, 2014 at 18:01