lundi 18 mai 2015

How to arrange the data in sql table as per below requirement

ID | EmpDailyFee | EmpMonthlyFee | CompDailyFee | CompMnthlyFee

1        NULL         12            NULL               NULL

1        50           NULL          NULL               NULL

1        60           NULL          NULL               NULL

2        50           NULL          NULL               NULL

3        NULL         30            NULL               NULL

Expected :-

ID | EmpDailyFee | EmpMonthlyFee | CompDailyFee | CompMnthlyFee

1        50            12            NULL               NULL

1        60            12            NULL               NULL

2        50           NULL           NULL               NULL

3        NULL          30            NULL               NULL

Aucun commentaire:

Enregistrer un commentaire