Hi. I'm trying to create a report soon, but I need to complete a query before I can get it done. There's a lot of fields in the table, but for this I can simplify it by imagining it to be only 3 columns that I need to work with.
Basically, I have order numbers for pieces that are tracked at different stages of shipment. Item 1 will be tracked for destination A, B, and C. These destinations will also show dates symbolizing arrival at that certain area. Currently this information is displayed as follows:
Col1 Col2 Col3
Order# Destination Date
1 A 03/07/08
1 B 03/08/08
1 C 03/09/08
2 A 08/24/08
2 B 08/27/08
2 C 08/29/08
3 A 02/22/09
.
.
.
........and on....
What I want to do is take that information and combine it into rows based on the order #, where one row will show all relevant information for that specifice order. One row will show relevant information for order 1, one row will show all relevant information for order 2, and so on, without combining any of the "destination" data or the "date" data. The destination data and date data will show in columns of their own. I would like to see this:
Col 1 Col2 Col3 Col4 Col5 Col6 Col7
Order# Dest 1 Date 1 Dest 2 Date 2 Dest 3 Date 3
1 A 03/07/08 B 03/08/08 C 03/09/08
2 A 08/24/08 B 08/27/08 C 08/29/08
......
........and on.......
I would not like to base this solution on any kind of static number of "destinations", because the amount of destinations will definitely vary for each order number.
I have attached a screenshot of my table as well.
Please help!
Thank you in advance!