Author |
Topic |
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-14 : 12:25:16
|
We have multiple machines that record data that Operators input while manufacturing parts. When a record is written, it records the DateTime, Operator's ID Number as varchar(50), the System Id (machine name) as varchar(50), and the Test_Result as varchar(255).I have been asked to determine the number of shifts an Operator has worked from this data. I can stub this out, but I don't know how to proceed.Often, employees are asked to work a few hours extra, so we would like an employee's time to start with their first record of the day and go out 12 hours.My problem did not show up until management started querying the data for a single date, which goes from Midnight to Midnight. People working 2rd shift start at 4 PM would work until 12:30 AM of the next day, so the query pulls up people that ended the day before's shift and adds the next day's shift as well.How should I build this code?// Using Visual Studio 2008 Professional with C#string sqlText = "SELECT System_ID, Date_Time, OP_ID, Test_Result " + "FROM Table1 WHERE Date_Time BETWEEN @Date1 AND @Date2";DataTable table = new DataTable();List<string> People = new List<string>();using (SqlDataAdapter da = new SqlDataAdapter(sqlText, mySqlConn)){ da.SelectCommand.Parameters.Add("@Date1", SqlDbType.DateTime).Value = dtStart; da.SelectCommand.Parameters.Add("@Date2", SqlDbType.DateTime).Value = dtEnd; da.Fill(table);}for (int i = 0; i < table.Rows.Count; i++){ // ?} I've left out my code because I am worried this is going to lead someone to follow my steps - that are not working!Regards,~Joe Avoid Sears Home Improvement |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-09-14 : 13:18:09
|
you store a single date value for each record or both in and outtime? |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-14 : 13:43:11
|
Every time an item is logged we enter a new row into the table:INSERT INTO Table1 (System_ID, Date_Time, OP_ID, Test_Result)VALUES (@System_ID, GetDate(), @OP_ID, @Test_Result) This would be a single date value, if I understand you correctly. Avoid Sears Home Improvement |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-09-14 : 13:45:59
|
so how do you decide if the entry corresponds to start or end of shift? |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-14 : 14:20:46
|
At the start of a query, the Person in my List has Count = 0.I read in a row from the table.If the person is not in the Person list, add them using the format:string.Format("{0};{1};", OP_ID, Date_Time); In words, what the code block below does is this: If the person is in the Person list, read in the DateTime string portion, convert it to a DateTime, and compare that to the Date_Time field that was read in. If (oldDate.AddHours(12) < newDate), tack an "@" symbol onto their name to indicate another day has started and set the oldDate equal to the newDate. When I am done, I count the number of "@" symbols to determine how many shifts they worked.for (int i = 0; i < table.Rows.Count; i++) { bool found = false; DataRow r = table.Rows[i]; DateTime newDate = (DateTime)r[1]; string OP_ID = r[2].ToString(); for (int j = 0; (j < People.Count) && (found == false); j++) { string[] split = People[j].Split(new char[] { ';' }); if (split.Length == 3) { if (split[0] == OP_ID) { DateTime oldDate = MyGetDateFromString(split[1]); if (oldDate.AddHours(12) < newDate) { People[j] = string.Format("{0};{1};{2}@", OP_ID, newDate, split[2]); } } } } if (found == false) { People.Add(string.Format("{0};{1};@", OP_ID, newDate)); }} It is a horrible approach, but that's the only way I know of to do it.I really hate even showing anyone this technique, because I'm hoping someone can come up with a better working example. Avoid Sears Home Improvement |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-14 : 14:24:42
|
Again, the problem comes whenever someone works just past midnight on one day and comes in the following day around 4 PM - the report shows them working 2 days instead of just 1 day.We pay employees a little extra if they work on machines that are considered undesirable (very loud, hot, etc.) - so, the company really doesn't want to pay them for 2 days when they only worked 1 day on this machine. Avoid Sears Home Improvement |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-09-14 : 14:29:48
|
quote: Originally posted by jp2code Again, the problem comes whenever someone works just past midnight on one day and comes in the following day around 4 PM - the report shows them working 2 days instead of just 1 day.We pay employees a little extra if they work on machines that are considered undesirable (very loud, hot, etc.) - so, the company really doesn't want to pay them for 2 days when they only worked 1 day on this machine. Avoid Sears Home Improvement
for that just take time diff b/w start and end rather day diff and convert it to days |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-14 : 15:07:52
|
Actually, we can't do that either.One day, Employee A may work in the steel mill on Mondays, but sit in the air conditioned Supply Room the rest of the week.Some employees don't mind the heat; some employees really want the extra pay. Other employees only want to work the minimum required time in those areas.The company only wants to pay Employee A an extra $1/hour on the days they work in the very hot steel mill.I don't know how to go about this. Avoid Sears Home Improvement |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-16 : 09:39:01
|
Sure. I can post some data.These are records from this month, 06 Sept to 12 Sept; this is 1473 rows of data:OP_ID Date_Time000713 2009-09-09 01:30:12.823000713 2009-09-09 01:23:20.767000713 2009-09-09 01:21:00.263000713 2009-09-09 01:51:10.563000713 2009-09-09 01:43:56.983000713 2009-09-09 01:33:10.480000713 2009-09-09 02:14:25.130000713 2009-09-09 02:14:01.440000713 2009-09-09 01:58:33.793000713 2009-09-09 02:51:12.807000713 2009-09-09 02:41:11.713000713 2009-09-09 02:33:43.780000713 2009-09-11 07:36:14.450000713 2009-09-11 07:47:03.797000713 2009-09-11 07:45:13.977000713 2009-09-11 07:38:19.360000713 2009-09-11 07:54:44.837000713 2009-09-11 07:52:17.217000713 2009-09-11 07:49:51.687000713 2009-09-11 08:07:03.953000713 2009-09-11 08:00:27.080000713 2009-09-11 07:58:12.883000713 2009-09-11 08:31:49.560000713 2009-09-11 08:24:05.787000713 2009-09-11 08:09:06.437000713 2009-09-11 09:03:37.053000713 2009-09-11 08:57:05.137000713 2009-09-11 08:45:33.453000803 2009-09-09 17:39:20.877000803 2009-09-09 20:59:55.153000803 2009-09-09 20:55:41.137000803 2009-09-09 17:46:08.093000803 2009-09-10 00:32:59.150000803 2009-09-09 23:16:11.760000803 2009-09-09 22:56:48.470000803 2009-09-10 17:11:51.560000803 2009-09-10 17:08:16.130000803 2009-09-10 00:34:28.087000803 2009-09-10 22:08:13.803000803 2009-09-10 20:07:47.790000803 2009-09-10 20:02:32.700000803 2009-09-11 00:08:12.713000803 2009-09-10 22:21:20.683000803 2009-09-10 22:15:07.497000887 2009-09-09 16:21:17.740000887 2009-09-09 18:20:53.447000887 2009-09-09 16:26:50.093000887 2009-09-09 16:22:42.510000887 2009-09-09 20:51:32.090000887 2009-09-09 20:47:39.603000887 2009-09-09 18:26:29.523000887 2009-09-10 00:17:29.360000887 2009-09-09 22:39:27.920000887 2009-09-09 22:35:10.743000887 2009-09-10 00:22:27.870000887 2009-09-10 00:22:27.580000887 2009-09-10 00:17:29.450000887 2009-09-10 17:55:36.110000887 2009-09-10 16:41:23.353000887 2009-09-10 16:38:16.853000887 2009-09-10 18:41:57.820000887 2009-09-10 18:40:19.513000887 2009-09-10 17:58:09.177000887 2009-09-10 20:41:58.257000887 2009-09-10 20:39:01.700000887 2009-09-10 18:45:35.607000887 2009-09-10 23:58:08.163000887 2009-09-10 22:16:39.600000887 2009-09-10 22:14:20.737000887 2009-09-11 00:30:22.167000887 2009-09-11 00:08:50.140000887 2009-09-11 00:03:48.250000913 2009-09-08 06:31:55.773000913 2009-09-08 07:52:13.473000913 2009-09-08 07:48:55.237000913 2009-09-08 06:34:06.473000913 2009-09-08 10:08:30.307000913 2009-09-08 10:06:43.150000913 2009-09-08 08:09:14.820000913 2009-09-08 12:41:49.597000913 2009-09-08 12:39:30.987000913 2009-09-08 11:10:02.223000913 2009-09-09 06:22:34.230000913 2009-09-08 14:14:16.657000913 2009-09-08 14:12:24.203000913 2009-09-09 09:37:36.500000913 2009-09-09 09:35:11.897000913 2009-09-09 07:10:14.677000913 2009-09-09 13:36:54.787000913 2009-09-09 13:35:03.580000913 2009-09-09 11:43:54.610000913 2009-09-10 06:33:32.430000913 2009-09-10 06:31:37.603000913 2009-09-09 14:33:36.903000913 2009-09-10 08:09:24.780000913 2009-09-10 08:08:08.977000913 2009-09-10 08:06:58.247000913 2009-09-10 09:02:48.840000913 2009-09-10 09:01:36.217000913 2009-09-10 08:10:36.900000913 2009-09-10 12:44:24.247000913 2009-09-10 10:51:13.763000913 2009-09-10 10:49:57.633000913 2009-09-10 14:11:20.437000913 2009-09-10 14:09:33.023000913 2009-09-10 12:45:40.040001060 2009-09-09 17:16:32.390001060 2009-09-09 16:40:58.740001060 2009-09-09 22:56:44.237001060 2009-09-09 20:21:23.000001060 2009-09-09 19:28:33.317001060 2009-09-10 16:59:29.500001060 2009-09-10 00:41:24.617001060 2009-09-09 23:01:38.980001060 2009-09-10 18:23:36.653001060 2009-09-10 17:04:02.360001060 2009-09-10 17:02:11.947001060 2009-09-10 20:56:26.610001060 2009-09-10 20:54:39.567001060 2009-09-10 18:26:42.887001060 2009-09-10 22:52:16.750001060 2009-09-10 22:42:13.700001060 2009-09-10 20:58:43.683001060 2009-09-11 00:33:43.380001060 2009-09-11 00:29:32.590001060 2009-09-11 00:27:02.363001093 2009-09-08 22:09:32.093001093 2009-09-08 22:15:05.373001093 2009-09-08 22:12:49.457001093 2009-09-08 22:10:07.793001093 2009-09-08 23:40:09.353001093 2009-09-08 23:38:09.530001093 2009-09-08 23:36:06.893001093 2009-09-09 16:30:35.310001093 2009-09-09 00:21:10.410001093 2009-09-09 00:19:39.430001093 2009-09-09 19:59:57.937001093 2009-09-09 18:02:01.203001093 2009-09-09 16:32:19.790001093 2009-09-09 21:23:32.407001093 2009-09-09 21:19:03.870001093 2009-09-09 21:17:40.260001093 2009-09-10 00:18:20.683001093 2009-09-10 00:13:14.230001093 2009-09-09 22:25:42.700001093 2009-09-10 19:39:15.970001093 2009-09-10 17:15:08.553001093 2009-09-10 00:19:56.520001093 2009-09-10 23:56:41.370001093 2009-09-10 21:18:00.050001093 2009-09-10 20:30:12.457001103 2009-09-09 14:16:38.617001103 2009-09-10 13:11:31.893001103 2009-09-10 08:52:19.140001103 2009-09-10 08:49:50.747001232 2009-09-08 17:49:30.620001232 2009-09-08 16:28:02.110001232 2009-09-08 16:25:53.717001232 2009-09-08 19:48:11.950001232 2009-09-08 19:45:03.580001232 2009-09-08 17:52:47.363001232 2009-09-08 21:47:23.723001232 2009-09-08 20:23:40.360001232 2009-09-08 20:21:32.547001232 2009-09-08 23:48:37.743001232 2009-09-08 23:45:18.187001232 2009-09-08 21:50:35.120001232 2009-09-09 16:15:20.847001232 2009-09-09 16:11:30.033001232 2009-09-09 00:29:16.500001232 2009-09-09 18:17:07.590001232 2009-09-09 16:19:32.717001232 2009-09-09 16:17:59.993001232 2009-09-09 18:24:16.847001232 2009-09-09 18:21:59.810001232 2009-09-09 18:20:36.340001232 2009-09-09 22:34:15.987001232 2009-09-09 20:55:37.747001232 2009-09-09 20:50:38.257001232 2009-09-10 00:19:10.327001232 2009-09-09 22:39:59.060001232 2009-09-09 22:36:15.157001232 2009-09-10 00:23:54.407001232 2009-09-10 00:22:19.070001232 2009-09-10 00:20:53.277001232 2009-09-10 16:37:20.880001232 2009-09-10 16:35:44.560001232 2009-09-10 16:33:51.380001232 2009-09-10 17:47:36.617001232 2009-09-10 17:45:34.137001232 2009-09-10 16:39:47.550001232 2009-09-10 20:25:40.160001232 2009-09-10 18:28:58.410001232 2009-09-10 17:50:17.660001232 2009-09-10 20:31:45.560001232 2009-09-10 20:28:42.043001232 2009-09-10 20:26:48.330001232 2009-09-10 23:53:27.700001232 2009-09-10 21:56:27.187001232 2009-09-10 21:54:08.170001232 2009-09-11 00:03:54.207001232 2009-09-10 23:56:12.230001232 2009-09-10 23:55:08.837001561 2009-09-08 16:46:25.203001561 2009-09-08 18:12:45.483001561 2009-09-08 16:57:15.947001561 2009-09-08 16:50:16.513001561 2009-09-08 18:30:00.103001561 2009-09-08 18:16:20.500001561 2009-09-08 18:13:29.470001561 2009-09-08 18:40:24.690001561 2009-09-08 18:32:47.080001561 2009-09-08 18:31:16.600001561 2009-09-08 20:33:45.750001561 2009-09-08 20:30:32.833001561 2009-09-08 19:01:51.547001561 2009-09-08 23:45:44.550001561 2009-09-08 22:03:01.460001561 2009-09-08 22:00:09.447001561 2009-09-09 16:34:23.677001561 2009-09-09 00:31:59.837001561 2009-09-08 23:49:21.140001561 2009-09-09 18:30:54.877001561 2009-09-09 18:29:58.020001561 2009-09-09 16:37:42.160001561 2009-09-09 18:46:20.410001561 2009-09-09 18:44:05.867001561 2009-09-09 18:42:11.363001561 2009-09-09 22:29:47.753001561 2009-09-09 22:27:37.397001561 2009-09-09 20:29:03.663001561 2009-09-10 16:14:12.237001561 2009-09-10 00:22:21.650001561 2009-09-09 22:33:14.390001561 2009-09-10 16:19:04.800001561 2009-09-10 16:17:15.590001561 2009-09-10 16:15:21.690001561 2009-09-10 17:31:44.337001561 2009-09-10 17:29:41.363001561 2009-09-10 16:20:11.283001561 2009-09-10 18:54:59.597001561 2009-09-10 17:34:39.160001561 2009-09-10 17:33:05.790001561 2009-09-10 18:57:59.407001561 2009-09-10 18:56:14.630001561 2009-09-10 18:55:52.570001561 2009-09-10 19:22:06.297001561 2009-09-10 19:20:34.770001561 2009-09-10 18:59:23.793001561 2009-09-10 21:24:49.560001561 2009-09-10 21:20:14.967001561 2009-09-10 19:29:23.753001561 2009-09-11 00:13:42.430001561 2009-09-11 00:11:40.917001561 2009-09-11 00:10:38.640001614 2009-09-10 09:29:43.863001614 2009-09-10 09:05:50.587001751 2009-09-09 05:36:33.373001751 2009-09-09 05:41:17.653001751 2009-09-09 05:39:10.810001751 2009-09-09 05:37:40.437003206 2009-09-08 16:21:09.680003206 2009-09-08 17:20:51.133003206 2009-09-08 17:18:31.313003206 2009-09-08 16:23:26.557003206 2009-09-08 18:18:30.583003206 2009-09-08 18:11:42.583003206 2009-09-08 18:09:10.567003206 2009-09-08 21:25:30.547003206 2009-09-08 20:13:12.597003206 2009-09-08 20:10:55.490003206 2009-09-08 23:22:25.953003206 2009-09-08 21:30:23.607003206 2009-09-08 21:27:48.663003206 2009-09-09 00:33:11.200003206 2009-09-09 00:31:09.390003206 2009-09-08 23:24:38.883003206 2009-09-09 17:01:53.770003206 2009-09-09 16:58:44.680003206 2009-09-09 16:56:03.023003206 2009-09-09 18:18:48.257003206 2009-09-09 18:16:43.930003206 2009-09-09 18:16:42.867003206 2009-09-09 18:22:00.990003206 2009-09-09 18:21:59.027003206 2009-09-09 18:18:49.160003206 2009-09-09 19:51:52.380003206 2009-09-09 18:23:49.860003206 2009-09-09 18:23:48.897003206 2009-09-09 19:56:47.877003206 2009-09-09 19:56:46.800003206 2009-09-09 19:51:53.370003206 2009-09-09 20:02:05.460003206 2009-09-09 19:59:24.460003206 2009-09-09 19:59:24.270003206 2009-09-09 20:05:22.953003206 2009-09-09 20:05:22.050003206 2009-09-09 20:02:17.750003206 2009-09-09 22:30:52.620003206 2009-09-09 20:53:36.417003206 2009-09-09 20:51:49.043003206 2009-09-10 00:06:44.167003206 2009-09-10 00:04:12.370003206 2009-09-09 22:41:15.400003206 2009-09-10 00:12:21.997003206 2009-09-10 00:09:49.180003206 2009-09-10 00:08:42.910003206 2009-09-10 16:29:20.490003206 2009-09-10 16:26:56.370003206 2009-09-10 00:18:43.413003206 2009-09-10 18:02:18.023003206 2009-09-10 17:59:50.930003206 2009-09-10 16:31:52.460003206 2009-09-10 20:02:07.587003206 2009-09-10 18:11:48.593003206 2009-09-10 18:05:37.010003206 2009-09-10 21:31:58.663003206 2009-09-10 20:06:28.000003206 2009-09-10 20:04:24.647003206 2009-09-10 23:28:59.640003206 2009-09-10 23:26:18.573003206 2009-09-10 21:34:39.677003206 2009-09-11 00:25:51.490003206 2009-09-10 23:34:38.070003206 2009-09-10 23:32:49.610003468 2009-09-09 09:19:59.353003468 2009-09-09 09:01:22.567003468 2009-09-09 10:07:09.423003468 2009-09-09 09:54:23.700003468 2009-09-09 09:42:20.167003468 2009-09-09 10:55:21.813003468 2009-09-09 10:30:27.447003468 2009-09-09 10:16:14.183003468 2009-09-10 09:50:36.190003468 2009-09-10 09:20:13.530003468 2009-09-09 14:00:58.390003468 2009-09-10 10:17:43.733003468 2009-09-10 10:07:59.490003468 2009-09-10 09:59:24.967003468 2009-09-10 10:44:47.447003468 2009-09-10 10:36:15.093003468 2009-09-10 10:27:07.133003468 2009-09-10 11:35:30.597003468 2009-09-10 11:04:13.743003468 2009-09-10 10:54:09.860003468 2009-09-10 12:01:36.997003468 2009-09-10 11:53:11.973003468 2009-09-10 11:44:36.853003468 2009-09-10 12:27:55.040003468 2009-09-10 12:24:57.073003468 2009-09-10 12:10:55.570003468 2009-09-10 12:43:10.590003468 2009-09-10 12:34:10.143003468 2009-09-10 12:31:05.443003468 2009-09-10 13:11:21.190003468 2009-09-10 13:02:43.887003468 2009-09-10 12:51:13.340003468 2009-09-10 13:39:09.070003468 2009-09-10 13:30:17.433003468 2009-09-10 13:20:05.320003468 2009-09-10 14:07:30.640003468 2009-09-10 13:56:50.430003468 2009-09-10 13:48:02.500003468 2009-09-10 14:41:40.050003468 2009-09-10 14:32:05.840003468 2009-09-10 14:22:50.083003795 2009-09-08 05:23:20.233003795 2009-09-08 05:31:08.733003795 2009-09-08 05:31:08.690003795 2009-09-08 05:23:20.497003795 2009-09-08 06:00:54.480003795 2009-09-08 05:52:29.950003795 2009-09-08 05:44:41.900003795 2009-09-08 06:31:13.473003795 2009-09-08 06:17:52.903003795 2009-09-08 06:09:22.810003795 2009-09-08 06:56:43.803003795 2009-09-08 06:48:27.447003795 2009-09-08 06:39:47.583003795 2009-09-08 07:34:13.817003795 2009-09-08 07:25:31.827003795 2009-09-08 07:17:18.160003795 2009-09-08 07:58:58.180003795 2009-09-08 07:50:53.983003795 2009-09-08 07:42:33.313003795 2009-09-08 08:25:38.580003795 2009-09-08 08:16:10.950003795 2009-09-08 08:07:40.450003795 2009-09-08 08:40:40.093003795 2009-09-08 08:40:39.733003795 2009-09-08 08:33:15.253003795 2009-09-08 08:48:29.173003795 2009-09-08 08:48:29.093003795 2009-09-08 08:47:53.800003795 2009-09-08 09:08:51.163003795 2009-09-08 09:04:01.307003795 2009-09-08 08:56:37.883003795 2009-09-08 09:31:52.993003795 2009-09-08 09:22:43.197003795 2009-09-08 09:18:32.330003795 2009-09-08 10:11:37.253003795 2009-09-08 10:01:16.590003795 2009-09-08 09:51:29.280003795 2009-09-08 10:41:55.997003795 2009-09-08 10:30:19.947003795 2009-09-08 10:20:36.297003795 2009-09-08 11:49:41.387003795 2009-09-08 11:36:45.790003795 2009-09-08 10:54:58.823003795 2009-09-08 12:54:25.597003795 2009-09-08 12:45:57.940003795 2009-09-08 12:12:39.337003795 2009-09-08 14:02:07.997003795 2009-09-08 13:39:13.750003795 2009-09-08 13:29:19.517003795 2009-09-08 14:32:58.950003795 2009-09-08 14:16:57.230003795 2009-09-08 14:08:27.320003795 2009-09-09 05:31:56.350003795 2009-09-09 05:22:12.973003795 2009-09-09 05:15:55.310003795 2009-09-09 06:32:38.353003795 2009-09-09 06:18:03.513003795 2009-09-09 05:59:12.463003795 2009-09-09 07:59:56.660003795 2009-09-09 07:42:55.530003795 2009-09-09 07:22:40.907003795 2009-09-09 09:09:00.313003795 2009-09-09 08:46:56.433003795 2009-09-09 08:20:06.223003795 2009-09-09 10:10:56.250003795 2009-09-09 09:56:13.287003795 2009-09-09 09:28:36.983003795 2009-09-09 13:36:01.480003795 2009-09-09 10:42:41.840003795 2009-09-09 10:22:24.510003795 2009-09-10 05:24:55.813003795 2009-09-09 14:35:19.233003795 2009-09-09 13:53:20.470003795 2009-09-10 05:45:11.727003795 2009-09-10 05:36:31.390003795 2009-09-10 05:31:22.263003795 2009-09-10 06:44:47.723003795 2009-09-10 06:35:40.340003795 2009-09-10 06:05:40.780003795 2009-09-10 07:58:53.863003795 2009-09-10 07:36:36.487003795 2009-09-10 06:58:46.670003795 2009-09-10 08:36:06.060003795 2009-09-10 08:27:15.640003795 2009-09-10 08:11:13.100003795 2009-09-10 09:24:36.603003795 2009-09-10 09:13:36.020003795 2009-09-10 09:03:15.073003795 2009-09-10 10:12:35.430003795 2009-09-10 09:44:18.560003795 2009-09-10 09:33:47.207003795 2009-09-10 11:46:49.183003795 2009-09-10 10:52:14.777003795 2009-09-10 10:31:34.840003795 2009-09-10 12:27:29.233003795 2009-09-10 12:20:57.183003795 2009-09-10 12:06:30.587003795 2009-09-10 13:32:55.420003795 2009-09-10 12:41:30.143003795 2009-09-10 12:31:05.837003795 2009-09-10 14:18:13.503003795 2009-09-10 13:53:33.660003795 2009-09-10 13:45:38.253004539 2009-09-08 06:50:55.763004539 2009-09-08 06:17:08.567004539 2009-09-08 06:15:31.037004539 2009-09-08 06:54:40.133004539 2009-09-08 06:52:25.690004539 2009-09-08 06:51:47.287004539 2009-09-09 08:28:37.477004539 2009-09-09 08:26:32.370004539 2009-09-09 08:19:01.907004539 2009-09-09 12:24:27.000004539 2009-09-09 12:22:44.747004539 2009-09-09 09:57:42.360004539 2009-09-09 14:21:13.187004539 2009-09-09 13:32:27.477004539 2009-09-09 12:30:32.377004539 2009-09-09 14:36:12.513004539 2009-09-09 14:29:34.993004539 2009-09-09 14:23:48.013004539 2009-09-10 06:05:16.127004539 2009-09-10 06:03:20.890004539 2009-09-10 06:01:51.817004539 2009-09-10 06:50:36.673004539 2009-09-10 06:13:52.187004539 2009-09-10 06:11:11.737004539 2009-09-10 07:32:06.487004539 2009-09-10 07:30:50.950004539 2009-09-10 06:52:39.833004539 2009-09-10 08:20:18.100004539 2009-09-10 07:58:51.117004539 2009-09-10 07:57:06.233004539 2009-09-10 10:56:50.313004539 2009-09-10 09:47:06.850004539 2009-09-10 09:45:37.347004539 2009-09-10 12:43:42.960004539 2009-09-10 12:42:39.343004539 2009-09-10 10:58:20.147004539 2009-09-10 14:02:09.420004539 2009-09-10 14:00:16.547004539 2009-09-10 12:45:56.123004545 2009-09-09 09:32:50.237004545 2009-09-09 08:49:56.567004545 2009-09-09 08:28:41.053004545 2009-09-09 12:28:37.670004545 2009-09-09 12:19:58.733004545 2009-09-09 12:18:34.333004545 2009-09-10 11:41:31.503004545 2009-09-10 08:33:00.150004545 2009-09-09 12:29:53.910004545 2009-09-10 11:44:40.377004580 2009-09-08 12:04:39.273004580 2009-09-08 12:58:40.583004580 2009-09-08 12:56:11.790004580 2009-09-08 12:06:49.207004580 2009-09-08 14:49:35.693004580 2009-09-08 14:05:59.830004580 2009-09-08 13:33:27.417004580 2009-09-09 06:19:21.960004580 2009-09-09 06:04:33.170004580 2009-09-09 05:51:54.637004580 2009-09-09 07:23:22.020004580 2009-09-09 06:51:09.820004580 2009-09-09 06:36:11.253004580 2009-09-09 08:16:20.803004580 2009-09-09 08:02:43.163004580 2009-09-09 07:41:12.807004580 2009-09-09 08:54:43.033004580 2009-09-09 08:50:52.220004580 2009-09-09 08:46:51.790004580 2009-09-09 10:39:34.580004580 2009-09-09 09:36:38.323004580 2009-09-09 09:13:06.457004580 2009-09-09 13:51:27.863004580 2009-09-09 13:20:13.473004580 2009-09-09 11:52:58.563004580 2009-09-10 05:56:36.393004580 2009-09-10 05:53:54.010004580 2009-09-09 14:30:13.530004580 2009-09-10 07:43:05.473004580 2009-09-10 07:39:37.593004580 2009-09-10 05:59:28.960004580 2009-09-10 10:25:25.037004580 2009-09-10 09:20:24.537004580 2009-09-10 08:58:42.303004580 2009-09-10 13:25:17.450004580 2009-09-10 12:02:53.230004580 2009-09-10 11:35:49.427004580 2009-09-10 14:44:30.370004580 2009-09-10 13:33:55.270004580 2009-09-10 13:30:09.117004580 2009-09-10 14:52:35.580004580 2009-09-10 14:51:51.453004580 2009-09-10 14:49:12.367005134 2009-09-11 01:11:55.643005134 2009-09-11 01:04:44.497005280 2009-09-08 17:55:31.640005280 2009-09-08 16:35:19.590005280 2009-09-08 16:33:44.073005280 2009-09-08 19:32:22.443005280 2009-09-08 19:30:43.247005280 2009-09-08 17:57:06.757005280 2009-09-08 22:32:49.093005280 2009-09-08 21:01:23.117005280 2009-09-08 20:59:48.077005280 2009-09-09 00:14:55.863005280 2009-09-09 00:13:14.190005280 2009-09-08 22:34:37.030005280 2009-09-09 17:02:21.470005280 2009-09-09 17:00:11.933005280 2009-09-09 00:54:44.043005280 2009-09-09 18:57:53.740005280 2009-09-09 18:55:22.003005280 2009-09-09 17:09:26.437005280 2009-09-09 19:20:24.043005280 2009-09-09 19:18:18.320005280 2009-09-09 18:59:45.400005280 2009-09-09 21:05:57.110005280 2009-09-09 21:04:00.663005280 2009-09-09 19:26:39.013005280 2009-09-10 00:53:15.500005280 2009-09-10 00:06:09.677005280 2009-09-10 00:04:06.550005280 2009-09-10 17:04:30.630005280 2009-09-10 17:02:15.863005280 2009-09-10 00:53:15.610005280 2009-09-10 21:21:32.010005280 2009-09-10 18:42:40.220005280 2009-09-10 18:40:28.773005280 2009-09-10 21:29:07.170005280 2009-09-10 21:26:44.570005280 2009-09-10 21:22:17.323005280 2009-09-10 23:34:21.350005280 2009-09-10 23:33:02.760005280 2009-09-10 23:29:03.517005280 2009-09-11 00:54:22.913005280 2009-09-10 23:40:33.627005280 2009-09-10 23:36:17.837005483 2009-09-09 09:26:37.717005483 2009-09-09 08:18:41.437005483 2009-09-09 07:18:00.940005483 2009-09-09 13:01:10.640005483 2009-09-09 09:40:46.633005483 2009-09-09 09:29:19.933005483 2009-09-10 06:10:04.387005483 2009-09-09 14:02:18.133005483 2009-09-09 13:15:44.320005483 2009-09-10 06:18:48.120005483 2009-09-10 06:17:26.617005483 2009-09-10 06:15:38.387005483 2009-09-10 07:44:53.947005483 2009-09-10 07:43:17.127005483 2009-09-10 07:41:43.537005483 2009-09-10 07:50:32.493005483 2009-09-10 07:48:50.343005483 2009-09-10 07:46:20.517005483 2009-09-10 09:32:23.187005483 2009-09-10 09:31:06.800005483 2009-09-10 09:29:55.973005483 2009-09-10 11:47:14.373005483 2009-09-10 09:35:22.603005483 2009-09-10 09:34:11.193005483 2009-09-10 14:09:46.307005483 2009-09-10 14:04:51.427005483 2009-09-10 11:51:45.497005782 2009-09-08 18:46:56.423005782 2009-09-08 18:45:24.363005791 2009-09-08 15:32:19.747005791 2009-09-08 16:07:07.810005791 2009-09-08 15:55:19.653005791 2009-09-08 15:43:59.423005791 2009-09-08 16:47:24.840005791 2009-09-08 16:37:35.137005791 2009-09-08 16:21:59.807005791 2009-09-08 17:21:56.893005791 2009-09-08 17:06:05.430005791 2009-09-08 16:56:35.743005791 2009-09-08 17:50:13.623005791 2009-09-08 17:40:11.887005791 2009-09-08 17:31:09.540005791 2009-09-08 18:18:49.500005791 2009-09-08 18:09:48.723005791 2009-09-08 18:00:29.460005791 2009-09-08 18:54:16.780005791 2009-09-08 18:39:27.420005791 2009-09-08 18:27:19.937005791 2009-09-08 19:56:03.840005791 2009-09-08 19:45:09.277005791 2009-09-08 19:35:38.340005791 2009-09-08 20:48:43.010005791 2009-09-08 20:16:32.387005791 2009-09-08 20:05:14.683006494 2009-09-08 21:25:22.513006494 2009-09-08 21:55:33.303006494 2009-09-08 21:44:46.803006494 2009-09-08 21:33:39.243006494 2009-09-08 22:35:54.700006494 2009-09-08 22:24:27.403006494 2009-09-08 22:10:08.917006494 2009-09-08 23:23:49.930006494 2009-09-08 22:58:50.903006494 2009-09-08 22:47:58.153006494 2009-09-09 00:05:18.463006494 2009-09-08 23:48:52.900006494 2009-09-08 23:37:26.230006494 2009-09-09 00:50:04.903006494 2009-09-09 00:35:39.290006494 2009-09-09 00:18:29.510006494 2009-09-09 15:58:52.370006494 2009-09-09 15:50:56.307006494 2009-09-09 15:42:25.100006494 2009-09-09 16:51:44.253006494 2009-09-09 16:20:24.193006494 2009-09-09 16:08:41.200006494 2009-09-09 18:04:22.623006494 2009-09-09 17:26:29.840006494 2009-09-09 17:13:14.400006494 2009-09-09 18:41:03.950006494 2009-09-09 18:26:12.990006494 2009-09-09 18:15:06.440006494 2009-09-09 19:40:00.157006494 2009-09-09 19:32:21.727006494 2009-09-09 18:51:27.390006494 2009-09-09 20:15:34.007006494 2009-09-09 20:01:57.703006494 2009-09-09 19:47:53.323006494 2009-09-09 20:38:10.533006494 2009-09-09 20:38:10.270006494 2009-09-09 20:27:57.480006494 2009-09-09 20:48:50.857006494 2009-09-09 20:45:06.293006494 2009-09-09 20:45:06.217006494 2009-09-09 21:27:42.323006494 2009-09-09 21:09:11.917006494 2009-09-09 20:56:53.253006494 2009-09-09 21:59:10.973006494 2009-09-09 21:51:28.277006494 2009-09-09 21:44:04.920006494 2009-09-09 22:44:09.140006494 2009-09-09 22:21:38.203006494 2009-09-09 22:09:59.353006494 2009-09-09 23:21:28.377006494 2009-09-09 23:17:44.177006494 2009-09-09 22:58:56.177006494 2009-09-09 23:51:15.527006494 2009-09-09 23:39:26.333006494 2009-09-09 23:30:26.120006494 2009-09-10 00:29:13.577006494 2009-09-10 00:12:51.040006494 2009-09-10 00:02:25.317006494 2009-09-10 15:59:07.977006494 2009-09-10 15:52:46.827006494 2009-09-10 00:42:43.597006494 2009-09-10 16:52:58.920006494 2009-09-10 16:43:21.710006494 2009-09-10 16:27:32.767006494 2009-09-10 17:24:59.817006494 2009-09-10 17:14:19.933006494 2009-09-10 17:03:05.977006494 2009-09-10 17:54:35.140006494 2009-09-10 17:46:06.360006494 2009-09-10 17:35:06.533006494 2009-09-10 18:27:10.440006494 2009-09-10 18:17:30.130006494 2009-09-10 18:04:39.823006494 2009-09-10 19:33:07.993006494 2009-09-10 18:57:46.833006494 2009-09-10 18:43:44.120006494 2009-09-10 20:05:15.543006494 2009-09-10 19:54:37.000006494 2009-09-10 19:42:33.787006494 2009-09-10 20:36:03.610006494 2009-09-10 20:27:20.207006494 2009-09-10 20:16:58.710006494 2009-09-10 21:02:29.223006494 2009-09-10 20:55:23.447006494 2009-09-10 20:45:32.857006494 2009-09-10 21:31:54.947006494 2009-09-10 21:23:03.263006494 2009-09-10 21:10:17.487006494 2009-09-10 22:04:59.557006494 2009-09-10 21:54:39.237006494 2009-09-10 21:42:35.270006494 2009-09-10 22:44:23.647006494 2009-09-10 22:30:49.940006494 2009-09-10 22:15:01.343006494 2009-09-10 23:23:13.990006494 2009-09-10 23:06:10.777006494 2009-09-10 22:55:13.320006494 2009-09-11 00:00:14.493006494 2009-09-10 23:45:13.277006494 2009-09-10 23:33:32.603006494 2009-09-11 00:44:57.490006494 2009-09-11 00:33:53.613006494 2009-09-11 00:11:29.030006650 2009-09-08 07:20:18.683006650 2009-09-08 07:30:13.840006650 2009-09-08 07:25:49.850006650 2009-09-08 07:23:27.417006650 2009-09-08 08:11:51.223006650 2009-09-08 07:32:16.127006650 2009-09-08 12:35:14.250006650 2009-09-08 10:20:06.630006650 2009-09-08 10:18:04.957006650 2009-09-08 14:21:34.630006650 2009-09-08 12:45:24.180006650 2009-09-08 12:37:58.513006650 2009-09-09 06:50:31.530006650 2009-09-09 06:48:53.657006650 2009-09-08 14:23:23.463006650 2009-09-09 09:06:05.590006650 2009-09-09 09:08:37.763006650 2009-09-09 09:06:43.217006650 2009-09-09 11:52:38.303006650 2009-09-09 12:45:42.870006650 2009-09-09 12:01:34.180006650 2009-09-09 11:54:35.047006650 2009-09-09 13:47:08.570006650 2009-09-09 13:45:18.570006650 2009-09-10 06:13:57.230006650 2009-09-10 06:12:29.180006650 2009-09-10 06:10:31.777006650 2009-09-10 08:35:49.253006650 2009-09-10 08:50:59.050006650 2009-09-10 10:19:18.043006650 2009-09-10 10:17:20.040006650 2009-09-10 12:07:53.257006650 2009-09-10 12:06:22.193006650 2009-09-10 10:21:52.213006650 2009-09-10 14:14:33.820006650 2009-09-10 14:20:05.920006650 2009-09-10 14:16:28.410006990 2009-09-09 17:18:10.660006990 2009-09-09 17:15:38.410006990 2009-09-09 16:06:56.890006990 2009-09-09 18:29:18.193006990 2009-09-09 20:27:34.613006990 2009-09-09 18:31:43.573006990 2009-09-09 20:40:22.937006990 2009-09-09 20:35:28.000006990 2009-09-09 23:23:03.153006990 2009-09-09 23:20:34.833006990 2009-09-10 00:26:50.970006990 2009-09-10 16:46:02.733006990 2009-09-10 16:43:36.757006990 2009-09-10 18:02:14.873006990 2009-09-10 17:59:47.367006990 2009-09-10 18:38:31.180006990 2009-09-10 20:39:47.447006990 2009-09-10 18:39:51.913006990 2009-09-10 20:41:25.247006990 2009-09-10 22:16:24.507006990 2009-09-10 22:15:11.943006990 2009-09-10 22:12:35.583006990 2009-09-11 00:01:29.880006990 2009-09-11 00:13:08.310006990 2009-09-11 00:04:24.883007705 2009-09-08 09:21:23.860007705 2009-09-09 08:34:09.033007705 2009-09-09 08:26:31.550007705 2009-09-09 10:06:44.353007705 2009-09-09 10:15:23.253007705 2009-09-09 10:11:00.607007705 2009-09-09 13:23:31.100007705 2009-09-10 07:22:58.550007705 2009-09-10 07:20:54.000007705 2009-09-10 10:03:17.397007705 2009-09-10 10:01:36.087007705 2009-09-10 10:05:40.093007705 2009-09-10 12:47:37.643007705 2009-09-10 12:41:07.547007705 2009-09-10 14:20:46.280007705 2009-09-10 14:24:23.000007705 2009-09-10 14:23:24.100007705 2009-09-10 14:22:04.327007715 2009-09-08 11:20:37.140007715 2009-09-08 11:11:40.600007715 2009-09-08 11:46:22.150007715 2009-09-08 11:38:00.103007715 2009-09-08 11:29:23.820007715 2009-09-08 12:11:19.673007715 2009-09-08 12:02:53.550007715 2009-09-08 11:54:30.457007715 2009-09-08 12:35:29.620007715 2009-09-08 12:27:08.387007715 2009-09-08 12:19:42.797007715 2009-09-08 13:00:33.927007715 2009-09-08 12:52:50.673007715 2009-09-08 12:44:27.537007715 2009-09-08 13:18:07.987007715 2009-09-08 13:09:42.627007715 2009-09-08 13:08:27.500007715 2009-09-08 13:37:26.540007715 2009-09-08 13:29:11.383007715 2009-09-08 13:24:18.370007715 2009-09-08 13:52:17.353007715 2009-09-08 13:47:18.157007715 2009-09-08 13:38:42.967007715 2009-09-08 14:13:23.377007715 2009-09-08 14:09:51.377007715 2009-09-08 14:02:17.667007715 2009-09-08 14:32:44.613007715 2009-09-08 14:24:10.860007715 2009-09-08 14:20:06.080007715 2009-09-09 07:28:57.173007715 2009-09-08 14:49:32.390007715 2009-09-08 14:40:13.297007715 2009-09-09 07:32:18.713007715 2009-09-09 07:32:18.663007715 2009-09-09 07:28:57.523007715 2009-09-09 07:45:21.320007715 2009-09-09 07:40:42.477007715 2009-09-09 07:35:28.910007715 2009-09-09 07:57:52.510007715 2009-09-09 07:53:59.450007715 2009-09-09 07:49:48.853007715 2009-09-09 08:12:44.180007715 2009-09-09 08:07:48.687007715 2009-09-09 08:03:40.610007715 2009-09-09 08:26:12.403007715 2009-09-09 08:21:52.200007715 2009-09-09 08:16:55.790007715 2009-09-09 08:49:50.620007715 2009-09-09 08:36:29.540007715 2009-09-09 08:30:57.377007715 2009-09-09 09:19:28.807007715 2009-09-09 09:10:50.853007715 2009-09-09 09:07:35.053007715 2009-09-09 09:59:03.027007715 2009-09-09 09:29:21.620007715 2009-09-09 09:19:56.460007715 2009-09-09 10:13:15.147007715 2009-09-09 10:11:57.557007715 2009-09-09 10:01:39.720007715 2009-09-09 10:51:41.793007715 2009-09-09 10:33:16.003007715 2009-09-09 10:24:18.510007715 2009-09-09 11:05:29.897007715 2009-09-09 11:05:02.200007715 2009-09-09 10:54:12.770007715 2009-09-09 11:38:43.543007715 2009-09-09 11:23:51.490007715 2009-09-09 11:13:57.807007715 2009-09-09 12:10:38.953007715 2009-09-09 12:02:38.747007715 2009-09-09 11:58:56.387007715 2009-09-09 12:39:25.930007715 2009-09-09 12:33:18.583007715 2009-09-09 12:25:46.720007715 2009-09-09 12:57:56.823007715 2009-09-09 12:53:52.807007715 2009-09-09 12:46:40.163007715 2009-09-09 13:25:02.773007715 2009-09-09 13:16:50.427007715 2009-09-09 13:01:52.247007715 2009-09-09 13:49:04.670007715 2009-09-09 13:37:30.900007715 2009-09-09 13:25:32.197007715 2009-09-09 14:05:18.870007715 2009-09-09 14:00:54.797007715 2009-09-09 13:56:08.640007715 2009-09-09 14:26:45.953007715 2009-09-09 14:16:10.777007715 2009-09-09 14:14:07.890007715 2009-09-10 07:27:25.853007715 2009-09-10 07:23:56.123007715 2009-09-09 14:32:02.423007715 2009-09-10 07:37:36.097007715 2009-09-10 07:30:14.053007715 2009-09-10 07:27:26.187007715 2009-09-10 07:49:46.873007715 2009-09-10 07:45:44.490007715 2009-09-10 07:38:09.560007715 2009-09-10 08:00:47.150007715 2009-09-10 07:58:53.787007715 2009-09-10 07:52:42.683007715 2009-09-10 08:16:37.123007715 2009-09-10 08:09:51.377007715 2009-09-10 08:07:50.090007715 2009-09-10 08:27:58.820007715 2009-09-10 08:25:41.740007715 2009-09-10 08:18:35.070007715 2009-09-10 08:43:31.813007715 2009-09-10 08:36:53.720007715 2009-09-10 08:34:39.933007715 2009-09-10 08:55:49.593007715 2009-09-10 08:52:10.943007715 2009-09-10 08:46:49.487007715 2009-09-10 09:10:14.890007715 2009-09-10 09:04:57.630007715 2009-09-10 09:01:21.027007715 2009-09-10 09:23:33.347007715 2009-09-10 09:19:43.710007715 2009-09-10 09:13:53.370007715 2009-09-10 09:40:05.717007715 2009-09-10 09:31:33.767007715 2009-09-10 09:28:35.277007715 2009-09-10 09:51:10.087007715 2009-09-10 09:49:26.753007715 2009-09-10 09:42:45.370007715 2009-09-10 10:14:09.833007715 2009-09-10 10:05:07.600007715 2009-09-10 10:04:49.563007715 2009-09-10 10:24:56.670007715 2009-09-10 10:23:35.790007715 2009-09-10 10:15:39.780007715 2009-09-10 10:42:22.207007715 2009-09-10 10:34:49.187007715 2009-09-10 10:33:22.500007715 2009-09-10 10:52:12.820007715 2009-09-10 10:51:10.383007715 2009-09-10 10:44:02.207007715 2009-09-10 11:08:39.753007715 2009-09-10 11:01:15.937007715 2009-09-10 10:59:54.263007715 2009-09-10 11:18:36.927007715 2009-09-10 11:17:21.603007715 2009-09-10 11:10:10.260007715 2009-09-10 11:58:55.347007715 2009-09-10 11:27:30.867007715 2009-09-10 11:26:04.453007715 2009-09-10 12:12:13.790007715 2009-09-10 12:10:30.247007715 2009-09-10 12:00:41.040007715 2009-09-10 12:28:34.807007715 2009-09-10 12:21:17.203007715 2009-09-10 12:19:08.350007715 2009-09-10 12:39:53.057007715 2009-09-10 12:37:32.047007715 2009-09-10 12:30:42.473007715 2009-09-10 12:59:50.347007715 2009-09-10 12:48:40.467007715 2009-09-10 12:46:42.393007715 2009-09-10 13:13:33.550007715 2009-09-10 13:09:42.367007715 2009-09-10 13:04:26.103007715 2009-09-10 13:28:52.000007715 2009-09-10 13:23:04.653007715 2009-09-10 13:18:56.917007715 2009-09-10 13:43:36.433007715 2009-09-10 13:38:18.753007715 2009-09-10 13:33:22.880007715 2009-09-10 14:04:50.787007715 2009-09-10 13:57:42.060007715 2009-09-10 13:50:13.990007715 2009-09-10 14:36:39.040007715 2009-09-10 14:36:00.547007715 2009-09-10 14:24:59.563007719 2009-09-08 12:36:35.600007719 2009-09-08 12:34:44.573007719 2009-09-09 06:14:20.313007719 2009-09-08 14:06:05.010007719 2009-09-08 14:03:10.057007719 2009-09-09 09:39:28.880007719 2009-09-09 09:29:18.940007719 2009-09-09 07:17:42.067007719 2009-09-09 12:31:31.120007719 2009-09-09 12:28:39.660007719 2009-09-09 12:25:46.307007719 2009-09-10 06:02:55.257007719 2009-09-09 13:42:39.630007719 2009-09-09 12:35:51.047007719 2009-09-10 06:35:56.407007719 2009-09-10 06:34:46.373007719 2009-09-10 06:04:45.987007719 2009-09-10 08:00:23.217007719 2009-09-10 07:58:09.677007719 2009-09-10 07:57:00.427007719 2009-09-10 08:59:00.140007719 2009-09-10 08:57:49.360007719 2009-09-10 08:01:33.660007719 2009-09-10 12:48:54.097007719 2009-09-10 10:42:55.477007719 2009-09-10 10:39:23.610007719 2009-09-10 14:07:15.997007719 2009-09-10 14:03:32.917007719 2009-09-10 12:51:20.357007838 2009-09-08 12:20:53.223007838 2009-09-08 12:20:52.873007838 2009-09-08 12:47:32.477007838 2009-09-08 12:36:36.810007838 2009-09-08 12:29:00.957007838 2009-09-08 12:55:42.760008037 2009-09-08 10:31:41.210008037 2009-09-08 10:29:17.797008037 2009-09-08 10:24:27.620008037 2009-09-08 10:48:47.017008037 2009-09-08 10:40:49.350008037 2009-09-08 10:37:14.410008037 2009-09-08 12:46:17.993008037 2009-09-08 12:43:48.120008037 2009-09-08 10:50:25.520008037 2009-09-08 14:04:22.490008037 2009-09-08 13:09:54.210008037 2009-09-08 13:08:23.620008037 2009-09-08 14:30:02.633008037 2009-09-08 14:07:22.007008037 2009-09-08 14:05:44.827008037 2009-09-09 10:56:19.903008037 2009-09-09 07:14:44.187008037 2009-09-09 06:11:22.150008037 2009-09-10 06:02:31.093008037 2009-09-09 13:06:37.690008037 2009-09-09 10:58:55.133008037 2009-09-10 06:07:32.577008037 2009-09-10 06:05:34.527008037 2009-09-10 06:03:46.967008037 2009-09-10 08:00:54.770008037 2009-09-10 07:58:13.180008037 2009-09-10 07:55:53.807008037 2009-09-10 08:08:04.593008037 2009-09-10 08:05:19.717008037 2009-09-10 08:03:23.577008037 2009-09-10 09:23:22.650008037 2009-09-10 09:21:24.507008037 2009-09-10 09:19:47.373008037 2009-09-10 11:55:29.603008037 2009-09-10 09:27:37.460008037 2009-09-10 09:25:12.280008037 2009-09-10 12:00:24.570008037 2009-09-10 11:59:01.217008037 2009-09-10 11:57:32.323008037 2009-09-10 14:14:51.810008037 2009-09-10 14:13:25.740008037 2009-09-10 14:11:37.620008173 2009-09-09 04:44:06.250008173 2009-09-09 04:27:15.717008173 2009-09-09 04:17:36.203008173 2009-09-09 05:25:37.243008173 2009-09-09 05:11:25.577008173 2009-09-09 04:55:57.643008173 2009-09-09 06:23:27.060008173 2009-09-09 05:56:45.340008173 2009-09-09 05:40:35.413008173 2009-09-10 02:24:20.820008173 2009-09-09 06:46:57.910008173 2009-09-09 06:34:01.683008173 2009-09-10 02:42:26.760008173 2009-09-10 02:32:35.510008173 2009-09-10 02:32:35.240008173 2009-09-10 03:48:21.937008173 2009-09-10 03:35:25.840008173 2009-09-10 02:57:49.310008173 2009-09-10 04:30:16.440008173 2009-09-10 04:15:25.757008173 2009-09-10 04:05:06.390008173 2009-09-10 05:01:44.383008173 2009-09-10 04:48:38.523008173 2009-09-10 04:40:12.597008173 2009-09-10 05:30:23.073008173 2009-09-10 05:20:47.057008173 2009-09-10 05:11:08.163008173 2009-09-10 05:59:33.743008173 2009-09-10 05:49:54.540008173 2009-09-10 05:40:07.223008173 2009-09-10 06:31:31.660008173 2009-09-10 06:19:50.520008173 2009-09-10 06:10:34.793008173 2009-09-11 01:40:24.383008173 2009-09-11 01:40:24.133008173 2009-09-10 06:43:13.220008173 2009-09-11 02:10:14.260008173 2009-09-11 01:59:19.200008173 2009-09-11 01:49:55.573008173 2009-09-11 03:35:53.140008173 2009-09-11 02:31:19.030008173 2009-09-11 02:20:09.227008173 2009-09-11 04:58:05.973008173 2009-09-11 04:46:22.063008173 2009-09-11 04:36:00.350008173 2009-09-11 05:27:56.540008173 2009-09-11 05:17:52.520008173 2009-09-11 05:08:41.940008337 2009-09-09 16:34:36.077008337 2009-09-09 16:33:55.047008337 2009-09-09 16:41:47.777008337 2009-09-09 16:37:57.817008337 2009-09-09 16:35:39.017008337 2009-09-09 18:03:34.637008337 2009-09-09 18:01:47.790008337 2009-09-09 18:00:17.150008337 2009-09-09 20:12:35.690008337 2009-09-09 20:10:23.310008337 2009-09-09 20:10:03.373008337 2009-09-09 20:14:44.787008337 2009-09-09 20:14:44.237008337 2009-09-09 20:12:36.680008337 2009-09-09 23:22:20.663008337 2009-09-09 23:20:14.847008337 2009-09-09 23:17:52.367008337 2009-09-10 00:38:56.753008337 2009-09-10 00:36:24.927008337 2009-09-09 23:24:46.620008337 2009-09-10 16:39:55.987008337 2009-09-10 16:33:58.430008337 2009-09-10 16:31:59.937008337 2009-09-10 16:49:47.890008337 2009-09-10 16:45:09.020008337 2009-09-10 16:43:08.543008337 2009-09-10 17:00:59.867008337 2009-09-10 16:59:55.557008337 2009-09-10 16:56:02.733008337 2009-09-10 18:28:17.000008337 2009-09-10 17:06:59.473008337 2009-09-10 17:05:25.573008337 2009-09-10 18:31:20.487008337 2009-09-10 18:30:34.463008337 2009-09-10 18:28:49.307008337 2009-09-10 18:37:27.277008337 2009-09-10 18:34:32.363008337 2009-09-10 18:33:20.193008337 2009-09-10 20:30:51.633008337 2009-09-10 20:28:01.520008337 2009-09-10 18:38:34.050008337 2009-09-10 22:54:00.133008337 2009-09-10 22:45:46.277008337 2009-09-10 20:33:21.513008503 2009-09-09 09:45:08.170008503 2009-09-09 06:35:54.340008503 2009-09-09 06:34:23.750008503 2009-09-09 12:30:54.163008503 2009-09-09 09:54:56.753008503 2009-09-09 09:52:59.700008503 2009-09-09 14:19:51.540008503 2009-09-09 14:17:35.460008503 2009-09-09 12:32:30.950008503 2009-09-10 06:57:48.723008503 2009-09-10 06:56:45.817008503 2009-09-09 14:25:18.540008503 2009-09-10 08:56:10.960008503 2009-09-10 08:54:45.203008503 2009-09-10 07:13:55.020008503 2009-09-10 09:01:33.573008503 2009-09-10 08:58:25.680008503 2009-09-10 08:57:16.600008503 2009-09-10 10:27:27.120008503 2009-09-10 10:26:14.677008503 2009-09-10 10:24:58.707008503 2009-09-10 12:09:52.853008503 2009-09-10 10:29:44.757008503 2009-09-10 10:28:37.870008503 2009-09-10 14:07:50.267008503 2009-09-10 14:06:12.133008503 2009-09-10 12:11:13.540008504 2009-09-10 16:40:31.260008504 2009-09-10 22:02:19.427008504 2009-09-10 21:58:53.013008504 2009-09-10 16:42:05.220009210 2009-09-10 19:23:08.277009475 2009-09-08 21:16:16.543009475 2009-09-08 21:29:50.727009475 2009-09-08 21:27:14.480009475 2009-09-08 21:20:31.223009475 2009-09-08 21:48:53.097009475 2009-09-08 21:42:21.517009475 2009-09-08 21:37:38.597009475 2009-09-08 22:09:31.107009475 2009-09-08 21:59:12.867009475 2009-09-08 21:53:06.693009475 2009-09-08 23:03:39.667009475 2009-09-08 22:46:14.153009475 2009-09-08 22:21:58.390009475 2009-09-09 00:06:13.987009475 2009-09-08 23:51:58.763009475 2009-09-08 23:36:52.343009475 2009-09-09 00:53:10.013009475 2009-09-09 00:38:31.760009475 2009-09-09 00:24:45.937009475 2009-09-09 15:59:27.773009475 2009-09-09 15:48:02.967009475 2009-09-09 15:47:35.523009475 2009-09-09 16:36:47.390009475 2009-09-09 16:17:15.167009475 2009-09-09 16:01:16.527009475 2009-09-09 16:52:35.843009475 2009-09-09 16:47:30.480009475 2009-09-09 16:37:50.690009475 2009-09-09 17:26:14.660009475 2009-09-09 17:10:12.483009475 2009-09-09 16:59:25.660009475 2009-09-09 17:43:24.000009475 2009-09-09 17:35:55.087009475 2009-09-09 17:30:59.943009475 2009-09-09 18:25:36.013009475 2009-09-09 18:10:49.520009475 2009-09-09 17:45:27.737009475 2009-09-09 18:53:53.723009475 2009-09-09 18:47:33.517009475 2009-09-09 18:34:31.997009475 2009-09-09 19:44:33.200009475 2009-09-09 19:42:40.690009475 2009-09-09 19:36:04.303009475 2009-09-09 20:14:04.660009475 2009-09-09 20:09:17.067009475 2009-09-09 19:56:07.570009475 2009-09-09 20:35:29.950009475 2009-09-09 20:28:54.550009475 2009-09-09 20:19:16.693009475 2009-09-09 20:59:31.713009475 2009-09-09 20:50:58.620009475 2009-09-09 20:38:09.260009475 2009-09-09 21:26:14.520009475 2009-09-09 21:09:52.520009475 2009-09-09 21:05:21.690009475 2009-09-09 21:47:26.670009475 2009-09-09 21:42:49.350009475 2009-09-09 21:37:06.350009475 2009-09-09 22:13:07.197009475 2009-09-09 22:02:53.070009475 2009-09-09 22:01:15.267009475 2009-09-09 22:48:06.387009475 2009-09-09 22:30:36.753009475 2009-09-09 22:16:39.437009475 2009-09-09 23:44:00.623009475 2009-09-09 23:26:50.470009475 2009-09-09 23:04:20.463009475 2009-09-10 00:33:32.190009475 2009-09-10 00:18:11.570009475 2009-09-10 00:00:59.140009475 2009-09-10 16:00:42.707009475 2009-09-10 15:48:57.353009475 2009-09-10 15:48:11.557009475 2009-09-10 16:49:05.980009475 2009-09-10 16:33:00.273009475 2009-09-10 16:29:58.010009475 2009-09-10 17:07:00.060009475 2009-09-10 17:00:03.667009475 2009-09-10 16:59:08.693009475 2009-09-10 17:13:13.193009475 2009-09-10 17:10:58.990009475 2009-09-10 17:10:41.760009475 2009-09-10 17:49:45.697009475 2009-09-10 17:39:01.530009475 2009-09-10 17:28:37.210009475 2009-09-10 18:02:53.700009475 2009-09-10 17:59:51.987009475 2009-09-10 17:56:26.050009475 2009-09-10 18:20:01.177009475 2009-09-10 18:11:42.910009475 2009-09-10 18:08:54.197009475 2009-09-10 18:51:48.880009475 2009-09-10 18:42:27.290009475 2009-09-10 18:31:02.177009475 2009-09-10 19:58:15.160009475 2009-09-10 19:47:04.987009475 2009-09-10 19:02:43.820009475 2009-09-10 20:29:26.783009475 2009-09-10 20:17:54.227009475 2009-09-10 20:08:38.667009475 2009-09-10 21:15:33.670009475 2009-09-10 20:51:16.057009475 2009-09-10 20:40:24.450009475 2009-09-10 21:49:07.197009475 2009-09-10 21:37:37.563009475 2009-09-10 21:26:38.227009475 2009-09-10 22:21:06.357009475 2009-09-10 22:11:31.670009475 2009-09-10 22:00:12.073009475 2009-09-10 22:38:32.390009475 2009-09-10 22:28:32.597009475 2009-09-10 22:26:24.433009475 2009-09-10 23:03:25.277009475 2009-09-10 22:55:59.473009475 2009-09-10 22:51:41.543009475 2009-09-10 23:31:06.620009475 2009-09-10 23:19:22.383009475 2009-09-10 23:10:59.410009475 2009-09-10 23:50:12.143009475 2009-09-10 23:41:24.160009475 2009-09-10 23:38:29.377009475 2009-09-11 00:21:40.730009475 2009-09-11 00:04:17.730009475 2009-09-10 23:51:41.163009475 2009-09-11 00:55:00.943009475 2009-09-11 00:39:55.727009475 2009-09-11 00:31:09.020009476 2009-09-09 04:17:13.960009476 2009-09-09 04:35:07.607009476 2009-09-09 04:25:14.090009476 2009-09-09 04:17:14.257009476 2009-09-09 05:29:12.457009476 2009-09-09 05:09:27.987009476 2009-09-09 04:47:27.740009476 2009-09-10 01:48:48.920009476 2009-09-10 01:48:48.640009476 2009-09-09 05:48:40.867009476 2009-09-10 02:16:21.633009476 2009-09-10 02:06:50.047009476 2009-09-10 01:58:13.540009476 2009-09-10 02:52:28.653009476 2009-09-10 02:43:18.473009476 2009-09-10 02:34:16.353009476 2009-09-10 03:56:21.243009476 2009-09-10 03:46:14.817009476 2009-09-10 03:34:19.920009476 2009-09-10 05:40:15.947009476 2009-09-10 05:32:15.530009476 2009-09-10 04:07:29.910009476 2009-09-10 06:10:17.940009476 2009-09-10 05:59:29.167009476 2009-09-10 05:50:16.533009476 2009-09-10 06:37:58.277009476 2009-09-10 06:28:31.487009476 2009-09-10 06:19:43.620009476 2009-09-11 01:42:52.030009476 2009-09-11 01:42:51.767009476 2009-09-10 06:48:37.220009476 2009-09-11 02:12:59.857009476 2009-09-11 02:02:43.900009476 2009-09-11 01:51:24.803009476 2009-09-11 03:54:45.050009476 2009-09-11 02:34:37.040009476 2009-09-11 02:23:55.237009476 2009-09-11 04:33:53.803009476 2009-09-11 04:20:22.060009476 2009-09-11 04:05:25.457009476 2009-09-11 05:06:32.220009476 2009-09-11 04:56:54.847009476 2009-09-11 04:43:29.273009567 2009-09-08 13:53:10.920009567 2009-09-09 12:10:48.773009567 2009-09-09 08:14:42.253009567 2009-09-09 08:09:59.103009567 2009-09-09 13:39:03.430009567 2009-09-09 13:35:35.467009567 2009-09-09 12:15:27.227009567 2009-09-10 06:00:37.140009567 2009-09-10 05:57:08.700009567 2009-09-09 14:14:53.610009567 2009-09-10 07:43:09.920009567 2009-09-10 07:11:35.110009567 2009-09-10 06:56:58.033009567 2009-09-10 08:18:04.767009567 2009-09-10 08:15:33.720009567 2009-09-10 07:44:18.393009567 2009-09-10 12:04:17.910009567 2009-09-10 10:06:13.593009567 2009-09-10 10:02:49.350009567 2009-09-10 14:07:09.393009567 2009-09-10 14:00:25.360009567 2009-09-10 12:07:01.147009768 2009-09-08 22:17:34.950009768 2009-09-08 22:15:46.270009768 2009-09-08 23:50:25.347009768 2009-09-08 23:48:46.317009768 2009-09-08 22:19:53.960009768 2009-09-09 00:48:45.350009768 2009-09-09 00:47:15.730009768 2009-09-08 23:51:35.597009768 2009-09-09 17:57:23.213009768 2009-09-09 17:35:33.790009768 2009-09-09 19:55:58.667009768 2009-09-09 21:32:37.603009768 2009-09-09 21:35:09.880009768 2009-09-10 00:16:38.500009768 2009-09-10 00:12:59.577009768 2009-09-10 16:56:24.090009768 2009-09-10 16:59:14.600009768 2009-09-10 18:26:34.510009768 2009-09-10 18:23:18.293009768 2009-09-10 18:45:47.483009768 2009-09-10 21:05:35.763009768 2009-09-10 21:02:14.010009768 2009-09-10 23:45:14.040009768 2009-09-10 23:42:48.357009768 2009-09-11 00:50:33.400009837 2009-09-08 06:40:56.100009837 2009-09-08 10:08:07.340009837 2009-09-08 06:45:39.667009837 2009-09-08 06:42:27.650009837 2009-09-08 10:10:15.567009837 2009-09-08 13:11:07.190009837 2009-09-08 13:09:27.717009837 2009-09-08 14:31:19.500009837 2009-09-08 13:20:18.960009837 2009-09-08 13:18:08.267009837 2009-09-09 07:24:32.047009837 2009-09-09 07:22:15.877009837 2009-09-08 14:33:20.493009837 2009-09-09 11:34:42.330009837 2009-09-09 09:47:53.740009837 2009-09-09 09:40:36.010009837 2009-09-09 14:02:58.820009837 2009-09-09 12:47:07.753009837 2009-09-09 11:46:37.063009837 2009-09-10 06:16:30.610009837 2009-09-09 14:13:19.170009837 2009-09-09 14:12:00.773009837 2009-09-10 06:24:11.323009837 2009-09-10 06:18:50.210009837 2009-09-10 06:17:39.057009837 2009-09-10 08:21:44.407009837 2009-09-10 06:32:10.893009837 2009-09-10 06:25:57.487009837 2009-09-10 08:26:00.260009837 2009-09-10 08:24:53.783009837 2009-09-10 08:23:23.363009837 2009-09-10 11:32:35.127009837 2009-09-10 09:19:32.137009837 2009-09-10 09:18:12.440009837 2009-09-10 12:51:05.810009837 2009-09-10 11:35:15.737009837 2009-09-10 11:33:57.807009837 2009-09-10 14:22:56.297009837 2009-09-10 14:21:38.697009837 2009-09-10 12:52:30.823 The DDL to create the table above (after removing unnecessary information like temperature, press speed, etc.) is simply this:CREATE TABLE [dbo].[Test_Results] ( [Test_Number] [bigint] IDENTITY (1, 1) NOT NULL , [Serial_Number] [char] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [Date_Time] [datetime] NOT NULL , [System_ID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Op_ID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Test_Result] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,) ON [PRIMARY]GO The query that created the data above was:select op_id, date_timefrom test_resultswhere date_time between '09/06/2009' and '09/12/2009'order by op_id Avoid Sears Home Improvement |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2009-09-16 : 10:22:41
|
Please change you sample data statement to this so we don't have to doctor up 1400 lines of insert statements.Then also post the expected results based on whatever sample data you end up providing so we can test our solution(s).select'insert Test_Results (OP_ID Date_Time) values (''' + op_id + ''', ''' + convert(varchar(23), date_time, 121) + ''')'from test_resultswhere date_time between '09/06/2009' and '09/12/2009'order by op_id EDIT:better make sure my output works as valid insert statements first Be One with the OptimizerTG |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-16 : 13:29:31
|
How exactly would I change my sample data statement to include the INSERT routine?The only thing I can think of is to create a statement with 1400 INSERT lines in it. Is that what you mean? (I hope not) Keep in mind that I'm a software developer, not a DBA, though.Sample output that I'm trying to get is this:OP_ID Days Worked000713 4000814 4... n Avoid Sears Home Improvement |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-09-16 : 13:37:40
|
quote: Originally posted by jp2code Actually, we can't do that either.One day, Employee A may work in the steel mill on Mondays, but sit in the air conditioned Supply Room the rest of the week.Some employees don't mind the heat; some employees really want the extra pay. Other employees only want to work the minimum required time in those areas.The company only wants to pay Employee A an extra $1/hour on the days they work in the very hot steel mill.I don't know how to go about this. Avoid Sears Home Improvement
what determine the hot work place? |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2009-09-16 : 14:20:27
|
quote: Originally posted by jp2code How exactly would I change my sample data statement to include the INSERT routine?
I included the statement you need to run in my previous post.Be One with the OptimizerTG |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-16 : 14:59:06
|
quote: Originally posted by visakh16what determine the hot work place?
Hi visakh16,The hot work place (or other hazardous areas) are determined by the System_ID.I can filter by System_ID, so I did not show that step in the example query.Again, I am looking for a technique to determine the number of shifts someone worked. For calculation purposes, a shift begins when someone logs an initial record. All records from that moment out to 12 hours are considered part of the same shift. Records after 12 hours are counted with the next shift.quote: Originally posted by TGI included the statement you need to run in my previous post.
Hi TG,Forgive my ignorance! This is the query you listed:select'insert Test_Results (OP_ID Date_Time) values (''' + op_id + ''', ''' + convert(varchar(23), date_time, 121) + ''')'from test_resultswhere date_time between '09/06/2009' and '09/12/2009'order by op_id I do not fully understand what this query does. It looks to me like it inserts a lot of records. If I insert 1400 screwy values into my live database, I certainly won't have to worry about this problem anymore. I think I'd get fired.Is there a way to test that before simply running it? Avoid Sears Home Improvement |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2009-09-16 : 15:06:31
|
>>Forgive my ignorance!That is OK! I'm glad to see you don't blindly run stuff without knowing what it does :)My statement does not actually insert to anything. It just generates insert statement code which you can paste into a post here. I will paste output from the statement into a query window to insert into MY version of Test_Results.Be One with the OptimizerTG |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2009-09-16 : 16:35:20
|
quote: My problem did not show up until management started querying the data for a single date, which goes from Midnight to Midnight. People working 2rd shift start at 4 PM would work until 12:30 AM of the next day, so the query pulls up people that ended the day before's shift and adds the next day's shift as well.
This is why we need expected results but one thing I was curious about is:So when a person finishes their previous shift at 12:30 AM (after midnight) and starts the next shift at 4:00 PM. How many shifts should be counted for that midnight-to-midnight day? One or Two? Seems like the answer should be two.Be One with the OptimizerTG |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-16 : 18:04:08
|
Ah! After running it, now I see what your script did. Neat-O!I had our DBA help with that query, and he insisted on running that on a backup version of our database - which I was happy with doing. Only problem is we don't backup very often, so I had to use the month of June. That doesn't screw up the rest of the information I posted, does it?I can't see a way to attach a text file, and the SQL Server Forums server doesn't like something in the output, so I've got it here:[url]https://docs.google.com/View?docID=dgqbhbvj_88fp9w2cgj&revision=_latest[/url] Avoid Sears Home Improvement |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-16 : 18:06:47
|
OH! And, payroll wants 1 day when searching between '09/09/2009' and '09/10/2009'.For a single day, I could hard code the results. For 2 or more days, I don't know how to accurately determine how many days a person worked. Avoid Sears Home Improvement |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2009-09-17 : 12:24:06
|
Still waiting for either the expected results for your sample dataOR at least an answer to my earlier question:if a person ends a previous shift on the same calender day that their next shift starts, how many shifts has the person worked on that calender day? I would think the answer is two.And a related question, if a person works "one shift" from 8:00 PM to 4:00 AM, which calender day would that be associated with? I would think it is both days. Based on your previous posts I'm guess you disagree with that although I would argue that what I said is correct. Here is one way to get a shift count including optional From and To date parameters by op_id. But a shift on any part of a day would count towards that day. And any two shifts on the same day would count as 2 shifts for that day. If you want to do that differently then you need to better define the rules.declare @fDate datetime ,@tDate datetime--select @fDate = '2009-06-10'-- ,@tDate = '2009-06-11'select d.op_id ,count(*) as [ShiftCount]from ( select tr.op_id ,datediff(hour, d.minDate, tr.date_time) / 12 as shiftGroup ,count(*) as [itemCount] from test_results tr inner join ( select op_id, min(date_time) minDate from test_results where date_time >= isNull(@fDate, '1900-01-01') and date_time < isNull(@tDate, '2999-12-31') group by op_id ) d on d.op_id = tr.op_id where tr.date_time >= isNull(@fDate, '1900-01-01') and tr.date_time < isNull(@tDate, '2999-12-31') group by tr.op_id ,datediff(hour, d.minDate, tr.date_time) / 12 ) dgroup by d.op_id Be One with the OptimizerTG |
|
|
jp2code
Posting Yak Master
175 Posts |
Posted - 2009-09-17 : 16:22:42
|
quote: Originally posted by TG Still waiting for either the expected results for your sample data OR at least an answer to my earlier question:if a person ends a previous shift on the same calender day that their next shift starts, how many shifts has the person worked on that calender day? I would think the answer is two.And a related question, if a person works "one shift" from 8:00 PM to 4:00 AM, which calender day would that be associated with? I would think it is both days.
Hi TG,Sorry about that. I thought I had answered the question. HR needs to know how many shifts a person worked in a given area. So, working from 4 PM to 1 AM on one day needs to be treated as a different day than the "next day's" 4 PM to 1 AM.Your second question is certainly the more important one, as I see it. I had to talk to HR about this to get an answer, and here is how they answered it: Say there is a holiday coming up, and the plant is going to be closed (Christmas, Memorial Day, etc.). The day before is a work day, and 2nd shift still works from 4 PM to 1 AM; hence, the time *after* the end date should be included in that person's quota.Your script is nice! Hard for me to understand all of it, but nice!I'll have to modify this in two ways, I think.First: If I am about to add a day, I'll have to look at two times - when the period started and how long that period spans. If the period starts less than 12 hours from the Start Date and spans less than 12 hours, it is excluded.Second: I'll have to look at two other times - When the last period was started and if that period plus 12 hours is greater than the End Date. If it is, 12 hours is added to that End Date.I'm thinking out loud. I don't have anything formulated. Avoid Sears Home Improvement |
|
|
Next Page
|