01 / 04
The items table holds three numbers
items has two amounts of money in it. price is what it sells for, cost is what it was bought in for. stock is how many are left.
Those three let you say "which is dear", "which earns" and "which is piling up". Start with the whole.
SELECT COUNT(*) AS products, AVG(price) AS average_price FROM items;Result
10 | 1045