Good day. Please may you assist with syntax on how I can obtain total population for each of the areas (1, 2) for each year.
The data is presented as follows:
The data is presented as follows:
| SA2 | Year | Population | Area |
| 123 | 2019 | 200 | 1 |
| 123 | 2020 | 250 | 1 |
| 149 | 2019 | 300 | 1 |
| 149 | 2020 | 320 | 1 |
| 149 | 2020 | 320 | 1 |
| 149 | 2021 | 350 | 1 |
| 201 | 2019 | 50 | 2 |
| 201 | 2020 | 100 | 2 |
| 202 | 2020 | 120 | 2 |
| 202 | 2021 | 130 | 2 |

Comment