PH,
The second solution now works - and is an improvement, though still spits out incorrect numbers after about 2 years of correct answers. I've checked the table the data is being drawn from and don't see any apparent problems.
Barring another solution, perhaps I just need to restrict the...
PH -
The first proposed solution breaks down in a fashion similar to the previous calculation method after about six months of data.
The second proposed solution gives me an alert:
"Between operator without And in query expression 't1.Date BETWEEN s1.date'"
I'm having a problem with a database I'm using to track production numbers. I've come up with SQL code which performs the calculations, however, a spot check reveals that the code works properly for a time, and then starts returning values that are incorrect. Thus far, I've been unable to...
I'm having a problem with a database I'm using to track production numbers. I've come up with SQL code which performs the calculations, however, a spot check reveals that the code works properly for a time, and then starts returning values that are incorrect. Thus far, I've been unable to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.