Hi so I have table as following
| employee id | job | start_dt |
|---|---|---|
| 1 | abc | 1/1/2021 |
| 1 | def | 5/1/2021 |
| 2 | xyz | 6/1/2021 |
| 2 | rfd | 8/1/2021 |
| 2 | hgf | 7/1/2021 |
| 2 | esd | 1/1/1999 |
I was wonder if there's a way I could pivot the table and layup all job and date at the same row,
| employee id | job_a | start_dt_ a | job_b | start_dt_b | job_c | start_dt_c | job_d | start_dt_d | job_e | start_dt_e | job_f | start_dt_f |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | abc | 1/1/2021 | def | 5/1/2021 | ||||||||
| 2 | xyz | 6/1/2021 | rfd | 8/1/2021 | hgf | 7/1/2021 | esd | 1/1/1999 |
(table name 'JOB')