I have a table called inventory that includes two columns as follows:
I would like to query this table to return a result set that lists how many items of each condition I have (column headers show in example below are not wanted in result set...just show here to give clarity):
I guess it would look something like:
SELECT item, sum(condition???), sum(condition???), sum(condition???)
FROM inventory
GROUP BY item
How can I accomplish this? Thanks.