Hey all! Hope you are well.
I have a table with supplier's company name and another one with transactions. The company names have wildcards for the processes that are being recorded on the transaction table. My wish is to have a merged query, that replaces the wildcard from Company for any other possible value. Is there a way I can achieve this?
Company Table
Company Name | Location |
companyname1_* | USA |
companyname2_* | Croatia |
company_*_name3_* | Phillipines |
companyname4 | Brazil |
companyname5_* | USA |
Transactions Table
Transaction | Quantity |
companyname1_sell | 123 |
companyname2_sell | 123 |
companyname1_sell_brazil | 1 |
company_microsoft_name3_bought | 123 |
companyname4 | 1111 |
companyname8_bought | 1447 |
Desired Output
Location | Transaction | Quantity |
USA | companyname1_sell | 123 |
USA | companyname1_sell_brazil | 1 |
Croatia | companyname2_sell | 123 |
Phillipines | company_microsoft_name3_bought | 123 |
Brazil | companyname4 | 1111 |
Many thanks in advance for your assistance on this topic!