JustATheory
IS-IT--Management
Greetings,
For other data types I can run this query no problem, I’m having trouble with the “timestamp” data type. I’m looking for the record between max and min values based on timestamp value; there will always be one record between the two. For date_time I’ll write a having clause:
Having min_date = max_date-1
I’ve not worked with timestamp data type much, it is possible that the value would be within the same day. I know there will be three records with three different timestamps and I’m looking for the record in the middle.
Any help would be greatly appreciated
Thanks,
Andy
For other data types I can run this query no problem, I’m having trouble with the “timestamp” data type. I’m looking for the record between max and min values based on timestamp value; there will always be one record between the two. For date_time I’ll write a having clause:
Having min_date = max_date-1
I’ve not worked with timestamp data type much, it is possible that the value would be within the same day. I know there will be three records with three different timestamps and I’m looking for the record in the middle.
Any help would be greatly appreciated
Thanks,
Andy