I have two tables and Table1 has all the values which I need to fill in Table2. How can I get column name in row with their values?
Table1:
| s.no | ID | Function | Head | Subhead | Via | transferID |
|---|---|---|---|---|---|---|
| 1 | A529 | Service | Cost | Cost | online | 456789 |
| 2 | A432 | Part change | cost | Cost | Cash | 1000 |
Table2:
| Serial no. | Feild_name | Feild_value |
|---|---|---|
| 1 | Function | service |
| 1 | Head | Cost |
| 1 | Subhead | Cost |
| 1 | Via | Online |
| 2 | Function | Part change |
| 2 | Head | cost |
| 2 | Subhead | cost |
| 2 | Via | online |