Attempting to join two tables, A and B in Snowflake on specific criteria. I want to join on Person_id but the Person_id row from Table B has to be 1+row from Table A.
Table: A
|Person_id | Name |
|----------|----------|
| 0 | John |
| 1 | Patel |
| 2 | Aaron |
Table: B
|Person_id | Hourly |
|----------|----------|
| 1 | 20 |
| 2 | 30 |
| 3 | 25 |
I want Table A to look like this after the join:
Table A:
|Person_id | Name | Hourly |
|----------|----------|--------|
| 0 | John | 20 |
| 1 | Patel | 30 |
| 2 | Aaron | 25 |