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
ASP.NET LinQ Look up
Workflow Foundation 4 (WF4) or SharePoint 2007 based on WF3?
Raid 1 mirror Bad block discovered
SCCM OSD deployment to Hyper-v R2
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Formview insert doesnt insert data if I add postbackurl on button
Sorry, VMware GO doesn't currently support ESXi servers with multiple datastores.
Can a link a data point in an excel chart to another chart
how do i/can setup backup DC on an existing 2008 AD.
MS Access VBA Filecopy returns 70 - permission denied