I have a action table. It contain a user type admin or consumer, some actions like login, change password etc..
userID actiontype usertype
1 login admin
2 login consumer
3 Change Password admin
4 Change password admin
5 Change Password consumer
...................
........
Now i have to create a result table in which i have all the count of actions by their both type of user as following table. Result table
actiontype admin customer
login 1 1
change Password 2 1
How i can do this.?? sorry for this, actually i need this .that was because of some misunderstanding.