I Have following tables
Table 1:-
Auto_Service
Auto_Id
Charge_Id
Table 2:-
Charge_Details
Charge_id
Amount
In Charge_Details table the tax percentage is also stored as it is a reference table
Let's say the values in Charge_Details are
Charge_Id Charge_dt Amount
1 labor 10
2 OilChange 30
I want the output as
Auto_Id Charge_dt amount labor
1 oilchange 30 10
Can someone please help with this . Here Labor was a row in input but in output it is a column