Go back and Normalise your database structure - is my first response !
How come you can possibly have two orders on the same order number - with DIFFERENT values ! ( Ever. let alone in the same week )
I think the answer will involve the Distinct keyword in a bit of SQL somewhere - but I'll need a lot more info on your schema to sort this one out, I fear.
The reason why i have the same order, is that it is not realy an order but order row here i show only the order no as many times that the order has rows.
I have a table with 3 colums orderno, delivery date and order sum. orderno apeare as often as there are row in the order, i want to count how many row there is sorted by week and how many uniqe orderno there are sorted by week. sorry for the bad spelling.
orderno (rows) Del.date order row sum
1000 2002-07-12 100.00
1000 2002-07-12 123.00
1001 2002-08-15 159.00
1002 2002-08-10 10000.00
Please, PLEASE, PLEASE tell me you have a primary key value somewhere in the table that uniquely identifies any ONE specific record from any of the rest.
Sobbs uncontrollably and wanders off into the night .. .. .. ..
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.