Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 find rows that are SIMILIAR time data but not Duplicate time data

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-09 : 09:23:41
Beth writes "Greetings:
Here is my problem:
we have data that has a date column that records a hit date/time for an application we are testing. I want to count as a single hit any time recorded within 10 seconds (minus 5 seconds and plus 5 seconds ) of row's recorded hit time.

So: we have a times of:
11:35:30
11:35:32
11:35:33
11:35:41
11:35:41
11:35:52
11:35:53
11:35:54

I want to count 3 hits
Hit 1: (11:35:30, 11:35:32, 11:35:33)
Hit 2: (11:35:41, 11:35:41)
Hit 3: (11:35:52, 11:35:53, 11:35:54)


SQL Server 7, WinNT 4.0 sp6
Any suggestions on how to even start this gratefully received

Thnakyou"
   

- Advertisement -