Microsoft
Software
Hardware
Network
Question : Count number of stops in consecutive numbers in table
I have a table with 2 fields (date, count). In the date column are consecutive dates for 10 years. In the count column, there will be only the number '1' if it met a certain criteria in a previous query. What I need to do is find out how many times that 1 stops before starting back up again.
Example:
Date Count
1/10/2009
1/11/2009 1
1/12/2009 1
1/13/2009 1
1/14/2009
1/15/2009
1/16/2009 1
1/17/2009 1
1/18/2009
1/19/2009 1
This would be 2 counts (or instances of that 1 stopping within the count column.
Anyone have any code that might do this for me??
Answer : Count number of stops in consecutive numbers in table
The function CountStops returns the number you're looking for.
Random Solutions
How to see the ESXi version
return max for each group
How to check and clear Attention LED
Upgrade PHP to 5.3 version (or 5.2 eventually) on Plesk 9.5.2
download file with as3
Import vs. link
Disable Wireless adapters when Laptops are connected to LAN
Why are Win 7 clients dropping connections, event 4634, laggy network, freezing clients
Unable to view certain websites internally on several OSx boxes
Not downloading Offline address book files. A server (URL) could not be located. 0X8004010F