tesleen2025
New Member
- Joined
- Nov 23, 2016
- Messages
- 13
Hi,
I have a table that I access through ODBC. I can not edit or modify this table in any way. This table has multiple order types. Some order types have a reference id back to another order type. I would like to get the actual order number for those reference id's. I hope this makes sense. Here is a sample of what I want to do.
I'm not sure what I need to do to get the results I'm looking for.
<tbody>
</tbody>
Respectfully,
TSmith
I have a table that I access through ODBC. I can not edit or modify this table in any way. This table has multiple order types. Some order types have a reference id back to another order type. I would like to get the actual order number for those reference id's. I hope this makes sense. Here is a sample of what I want to do.
I'm not sure what I need to do to get the results I'm looking for.
Current Table | |||||
Type | OrderID | OrderNumber | Amount | RefOrderID | |
Invoice | 123456 | 401-1234 | $$$ | 89645 | |
Invoice | 123789 | 401-1235 | $$$ | 87658 | |
Repair | 89645 | 401-6785 | $$$ | ||
Repair | 87658 | 401-6786 | $$$ | ||
Warranty | 646803 | 401-0033 | $$$ | 89645 | |
Warranty | 646899 | 401-0034 | $$$ | 87658 | |
What I want my filtered Query to look like | |||||
Type | OrderID | OrderNumber | Amount | RefOrderID | RefOrderNumber |
Warranty | 646803 | 401-0033 | $$$ | 89645 | 401-6785 |
Warranty | 646899 | 401-0034 | $$$ | 87658 | 401-6786 |
<tbody>
</tbody>
Respectfully,
TSmith