I'm looking for a query that would return the objects with the longest time period.
So the each entry in the collection has attributes of startDate and finishDate for example:
id: 1 startDate: 2019-01-22 23:23:47 finishDate: 2019-01-22 20:58:47
id: 2 startDate: 2019-01-22 23:12:47 finishDate: 2019-01-22 11:58:47
id: 3 startDate: 2019-01-22 23:23:47 finishDate: 2019-01-22 13:58:47
How do I find 2 items with the longest time period difference between endDate and startDate?