I'm new to this site and couldn't find a similar question, and not sure if this is even possible to query in SQL, but, what the heck, worth trying...
I have a access control system which writes the entries log into my DB. Attached sample from my data table:
tpxID Rec_Creation_Date
2995392 2018-03-06 11:50:45.000
2995391 2018-03-06 11:39:48.000
2995390 2018-03-06 11:30:58.453
2995389 2018-03-06 11:30:49.297
2995388 2018-03-06 11:30:30.687
2995387 2018-03-06 11:30:22.547
2995386 2018-03-06 11:30:13.483
2995385 2018-03-06 11:30:04.813
2995384 2018-03-06 11:29:57.640
2995383 2018-03-06 11:29:49.670
The idea is, that I would like to find out if there have been a time frame of 2 hours which I had more than 200 entries?
I mean dynamic query which will not look at round hours only.
Like not only to query 11:00-13:00 but also to query 11:01-13:01 and 11:02-13:02 etc...
Thanks in advance.