Viewing 8 posts - 1 through 8 (of 8 total)
Great! This works on the test data, now I go for testing in real!
Thanks so far.
IT WORKS. GREAT! How do you do that without a testbench in from of you....
March 18, 2009 at 12:08 pm
I have just tried your script and you are right. The first item will give a wrong result (I have again checked what I have expected). The first part has...
March 18, 2009 at 6:25 am
Yes, it works on my real data. I had to make some adustments as I had simplyfied my question. So now all works like expected. 😛
THANKS!!
March 16, 2009 at 2:07 pm
Yes, you are right. Your results are not what I expected to see, but I have to go again and look that what I expected is correct.
Your results are OK!!!!
Now...
March 14, 2009 at 2:44 pm
No problem for waiting as long as I get a clue how to solve that 🙂
March 14, 2009 at 11:22 am
To SSChasing
I have tried your solution with UNION ALL, but the result is not what I am looking for. Problem here is, that also if a part is not sold...
March 14, 2009 at 10:25 am
Ok, I hope I have understand and the following is what you need for more help.
--===== If the test table already exists, drop it
IF OBJECT_ID('TempDB..#mysales','U')...
March 14, 2009 at 8:59 am
Ok, it seems that my solution can not work.
Situation as follows (simplified):
Table statsales with fields partnumber, quantity, salesdate
Table parts with fields partnumber, parttype
Table combinations with fields assemblynumber, partnumber, quantity
A...
March 14, 2009 at 6:01 am
Viewing 8 posts - 1 through 8 (of 8 total)