I need your help.
Given 3 tables
Table name 1: Table1
| ID | Name |
|---|---|
| 1 | Mike |
| 2 | John |
Table name 2: join1
| ID | column | value |
|---|---|---|
| 1 | job_description | manager |
| 1 | salary | 3000 |
Table name 3: join2
| ID | column | value |
|---|---|---|
| 1 | Hobby | cycling |
| 1 | Date of join | 12.01.2020 |
output should join Table1 where ID=1 and join both tables Join1 and Join2 with row as column name "job_description" from join1 and with 2 rows as columns "Hobby" and "salary" from join2 table like so:
| ID | name | job_description | Hobby | salary |
|---|---|---|---|---|
| 1 | Mike | manager | cycling | 3000 |
Thanks