I need some help, I need to find records where some of them have same time-stamp or 500 mill-second time difference, here is the example data:
- 2013-07-27 11:23:12.677
- 2013-07-27 11:23:12.378
- 2013-07-27 11:22:14.110
- 2013-07-27 11:21:24.103
- 2013-07-26 12:24:31.455
- 2013-07-26 12:24:31.455
- 2013-07-26 11:23:12.367
- 2013-07-26 11:22:32.111
The rec #1 & #2 are 299 mill-seconds apart, and rec # 5 and #6 0 mill-seconds apart, when search into below data, I should get records # 1, #2 and # 5, #6 and so on...
Please any help or suitable SQL will be greatly help me.