bobfisher
Computer
- Jul 22, 2005
- 1
OK, I'll try and explain this 'logically':
My MS SQL application records outputs from a production line in real time. If I want to sum an output from a particular production line for a time period (say a month) and group by day, that works fine. The problem is that our 'Days' run from 7am to 7am and I need to sum that period and group by date of the start of our 'day'. I know I could add 0.278'ish to each day in the query, but then the query does not give the correct results between midnight and 7am.
What can I do?
My MS SQL application records outputs from a production line in real time. If I want to sum an output from a particular production line for a time period (say a month) and group by day, that works fine. The problem is that our 'Days' run from 7am to 7am and I need to sum that period and group by date of the start of our 'day'. I know I could add 0.278'ish to each day in the query, but then the query does not give the correct results between midnight and 7am.
What can I do?