I just starting putting together a product database for my company of all the products we sell..
CREATE TABLE Product
(
ProductId BIGINT,
Name VARCHAR(50),
Category VARCHAR(50),
RetailPrice DECIMAL(9,2)
);
I'm trying to make a list of each product category and our most expensive product with this code
SELECT MAX(Product.RetailPrice) AS Expensive
SELECT COUNT(DISTINCT Product.Category) AS Categories FROM Expensive;
The terminal is only telling me that I have a syntax error.