Have results show on one line per customer order?

Number11

Member
Local time
Today, 04:22
Joined
Jan 29, 2020
Messages
610
Hello,

So i need to have the query show one line per customer order, the fields i have are as follows


Order_Date
Order_Number
Product_ID

results i see is

Order_Date Order_Number Product_ID
25/06/2024 592572 RRW01
25/06/2024 592572 RYTA02


i would like to see then like this is this possible?

Order_Date Order_Number Product_ID_1 Product_ID_2
25/06/2024 592572 RRW01 RYTA02
 
Maybe, but its not going to be easy.

1. Does the Product_ID number matter? RRW01 could be Product_ID_1 just as easily as it could be Product_ID_2 in the above example, right? If you do care about the number they get, please explain the precedence rules.

2. Could you have duplicate records? Could this be in the table:

Order_Date Order_Number Product_ID
25/06/2024 592572 RRW01
25/06/2024 592572 RYTA02
25/06/2024 592572 RYTA02
25/06/2024 592572 RYTA02

If so, how would you like that displayed?
 

Users who are viewing this thread

Back
Top Bottom