I have table data,
select * from tbltaxamount ;
id | taxname | taxinfoid | taxvalue | taxamt | zoneid | invoiceid | transid
----+-------------+-----------+----------+--------+--------+-----------+---------
1 | Service Tax | 0 | 0.00 | 28.69 | 2 | 119 | -1
2 | ABC Tax | 0 | 0.00 | 25.78 | 2 | 119 | -1
Now, how can I get the result as below using any function of PostgreSQL?
invoiceid | Service Tax | ABC Tax
----------+-------------+--------
119 | 28.69 | 25.78
After so may tries I have created below function for creation of the table on the fly and that will display records as above.