J
JAA149
Dear All,
For this I have been searching........................
Table 1 - ORDERS
OrderId Customer OrderMonth OrderValue
Ord1 ARTC Jan-06 250,000
Table 2 - MILESTONES
MileStoneId OrderId MileStoneMonth MileStoneValue
Ms1 Ord1 Jan-06 10,000
Ms2 Ord1 Feb-06 15,000
Ms3 Ord1 Mar-06 25,000
Ms4 Ord1 Apr-06 30,000
Now I want a query that could list all the orders with their customer, the
ordermonth, the order value + milestonemonth & mile stone value. But when i
design a query it repeats the OrdId, Customer, OrdMonth & OrdValue 4 times,
each for the MileStones. Is it a cross product? Should I sue
Distinct/Distinctrow? Shoul I union the Tables. What is required is to give a
piviottable type report (maybe a croostab query) in which it can been seen
that whict customers have which order, its value & when it was received AND
ALSO the milestones for thoes order.
The Order Table is joined as one to many with the Milestone table.
Thnaks in advance.
Regards
For this I have been searching........................
Table 1 - ORDERS
OrderId Customer OrderMonth OrderValue
Ord1 ARTC Jan-06 250,000
Table 2 - MILESTONES
MileStoneId OrderId MileStoneMonth MileStoneValue
Ms1 Ord1 Jan-06 10,000
Ms2 Ord1 Feb-06 15,000
Ms3 Ord1 Mar-06 25,000
Ms4 Ord1 Apr-06 30,000
Now I want a query that could list all the orders with their customer, the
ordermonth, the order value + milestonemonth & mile stone value. But when i
design a query it repeats the OrdId, Customer, OrdMonth & OrdValue 4 times,
each for the MileStones. Is it a cross product? Should I sue
Distinct/Distinctrow? Shoul I union the Tables. What is required is to give a
piviottable type report (maybe a croostab query) in which it can been seen
that whict customers have which order, its value & when it was received AND
ALSO the milestones for thoes order.
The Order Table is joined as one to many with the Milestone table.
Thnaks in advance.
Regards