I'm trying to make a query where it doesn't include products that have the same discount percent as another product. I'm also suppose to use a subquery. This is what I've came up with but I'm getting an error saying, "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
SELECT ProductName,
(SELECT DiscountPercent
FROM Products
GROUP BY DiscountPercent
HAVING COUNT(DiscountPercent) = 1
)
FROM Products
Fender Stratocaster 30.00
Gibson Les Paul 30.00
Gibson SG 52.00
Yamaha FG700S 38.00
Washburn D10S 0.00
Rodriguez Caballero 11 39.00
Fender Precision 30.00
Hofner Icon 25.00
Ludwig 5-piece Drum Set with Cymbals 30.00
Tama 5-Piece Drum Set with Cymbals 15.00