I have a table that logs how many of an item people have, table is set up like
Name Item Amount
--------------------------------
Knob Pistol 5
Knee Pistol 2
Hat Shotgun 3
I want to loop through the table and find out the total number of certain items. So if i searched for 'Pistol', it would output 7.
Do I have to loop through each record and add them to a number count, or is there a quicker way of doing it?