Hi Team,
I have a doubt on joining two tables and arriving at a specific resultant table. Basically all the rows from table A and table B should be in the resultant table (as the expected table below); Kindly provide hint on this workflow
Table A
| Date | Transaction ID | Tax Code | VAT amount in SAR |
| 7/2/2023 | 1111222 | SR | 3.33 |
| 7/2/2023 | 1111333 | SR | -7230 |
| 7/2/2023 | 1111444 | SR | 36090 |
Table B
| Transaction ID | Invoice Number | Code | VAT amount in SAR | Status |
| 1111222 | INV001 | AA | 3.33 | Success |
| 1111444 | INV003 | AA | 36090 | Success |
| 1111555 | INV004 | AA | -167.61 | Invoiced |
Expected result
| Date | Transaction ID | Tax Code | VAT amount in SAR | Transaction ID | Invoice Number | Tax Code | VAT amount in SAR | Status | Difference Amount |
| 7/2/2023 | 1111222 | SR | 3.33 | 1111222 | INV001 | AA | 3.33 | Success | 0 |
| 7/2/2023 | 1111333 | SR | -7230 | - | - | - | - | - | 7230 |
| 7/2/2023 | 1111444 | SR | 36090 | 1111444 | INV003 | AA | 36090 | Success | 0 |
| - | - | - | - | 1111555 | INV004 | AA | -167.61 | Invoiced | 167.61 |