We are looking to find the duration of time something was closed. We have a status (open/closed) field and a datetime field. How would I iterate through the related table for each GUID to find the amount of time something was closed? I am guessing part of this would be to sort by date and GUID and then a DateDiff?
example data for one guid/relfeatureglobalid:
