I have a requirement in the script, add all the columns in the column based on the second column. I know how to display the sum of all the data in the column. But please give me suggestions for this requirement.
Emp-range MP-ID salary ------------------------- -------- ------ Cat - A1 128 2 50 3 89 Total 267 Cat - B4 123 5 50 6 100 Total 273
Total expenditure 540
Therefore There are several categories, which are getting from the database.
Please suggest me how to do this.
In that case, you can use groups ... You can see the link given below for the tutorial):
No comments:
Post a Comment