Edited: I've a table of bill receipt as follows. Here fee_title count is unknown. there can be multiple title more than 3 title
| rec_no| fee_title | amount|
---------------------------------
| 1 | monthly fee| 200|
| 1 | tie fee | 100|
| 2 | computer fee| 150|
| 3 | monthly fee| 200|
---------------------------------
I want to show above receipt as
| rec_no| monthly fee| tie fee| computer fee |
-------------------------------------------------
| 1 | 200 | 100| 0 |
| 2 | 0 | 0| 150 |
| 3 | 200 | 0 | 0 |
-------------------------------------------------
I found to solve this problem I've to use PIVOT but I don't know how to use it. Anyone can help me