I'm new to mysql and php and need some help if possible!
I have a table that looks like the following
ID - ITEM COND
1 Hat 1
2 Shirt 5
3 Pants 10
4 Hat 4
5 Hat 9
6 Hat 6
7 - Shirt 5
I want to be able to pull from the table a list of UNIQUE items, how many of each unique item there are, and their average condition
Thus the output should be:
ITEM QTY AVG COND
Hat 4 - 5
Pants 1 - 10
Shirt 2 7.5
Any help would be appreciated!











Bookmarks