randolphoralph
Registered User.
- Local time
- Today, 04:32
- Joined
- Aug 4, 2008
- Messages
- 101
I have two tables (One table named Customer Info has address, phone #...etc and the other table named Customer Order has order info)
I have joined the Customer # field from both tables and set it to include all records from 'Customer Info' and only those records from 'Customer Order' where the joined fields are equal.
The problem is that when I run the query if a certain customer has more than one order in the Customer Order table it duplicates the Customer Info for each order.
Here is a example of what the query is doing:
Customer X Customer X Address Item Price
Customer X Customer X Address Item Price
Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price
How do I prevent this?
Here is a example of what I am looking for.
Customer X Customer X Address Item Price
-------------------------------Item Price
Customer Y Customer Y Address Item Price
-------------------------------Item Price
-------------------------------Item Price
*Disregard the ---- I had to do that so that the items would line up
I have joined the Customer # field from both tables and set it to include all records from 'Customer Info' and only those records from 'Customer Order' where the joined fields are equal.
The problem is that when I run the query if a certain customer has more than one order in the Customer Order table it duplicates the Customer Info for each order.
Here is a example of what the query is doing:
Customer X Customer X Address Item Price
Customer X Customer X Address Item Price
Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price
How do I prevent this?
Here is a example of what I am looking for.
Customer X Customer X Address Item Price
-------------------------------Item Price
Customer Y Customer Y Address Item Price
-------------------------------Item Price
-------------------------------Item Price
*Disregard the ---- I had to do that so that the items would line up
Last edited: