I have 2 tables as per below
Table 1
NAME STATUS
John Doe Single
Table 2
NAME ALLOWANCE AMOUNT
John Doe Transportation 100
John Doe Meal 200
John Doe Laundry 300
I need the following result after running the sql builder in the scriptcase pdf report
NAME STATUS TRANSPORTATION MEAL LAUNDRY
John Doe Single 100 200 300
Take note that the ALLOWANCE and AMOUNT data in table 2 need to pivot.
Attached is the file containing the initial sql query i made and the result than i need.
Anyone please help for coding in sql builder.