I have 2 tables:
- Master_table has data below;
| City | Dependency | Product | Type |
|---|---|---|---|
| Area1 | Payment | PRD876 | D |
| Area1 | Collection | PRD543 | A |
| Area2 | Collection | PRD109 | C |
| Area3 | Payment | PRD598 | S |
| Others1 | Debit | PRD120 | A |
| Others2 | e-Payment | PRD501 | G |
| Others3 | DD | PRD409 | X |
- Dependency_table
| City | Dependency | Start Date |
|---|---|---|
| Area1 | Payment | 9/29/2020 |
| Area1 | Collection | 9/29/2020 |
| Area2 | Collection | 9/30/2020 |
| Area3 | Payment | 10/1/2020 |
| Debit | 9/29/2020 | |
| e-Payment | 9/30/2020 | |
| DD | 10/4/2020 |
What I need:
| City | Dependency | Product | Type | Start Date |
|---|---|---|---|---|
| Area1 | Payment | PRD876 | D | 9/29/2020 |
| Area1 | Collection | PRD543 | A | 9/29/2020 |
| Area2 | Collection | PRD109 | C | 9/30/2020 |
| Area3 | Payment | PRD598 | S | 10/1/2020 |
| Others1 | Debit | PRD120 | A | 9/29/2020 |
| Others2 | e-Payment | PRD501 | G | 9/30/2020 |
| Others3 | DD | PRD409 | X | 10/4/2020 |
Basically I would like to group 2 tables by columns City and Dependency.
Much appreciated