I would like to executing this query in a table below, but I can't, it is saying that needs to use having and group by, someone can show me how to it, I am using SQL Server.
SELECT
products.name AS item,
users.name AS buyer,
auctionValues.value AS value
FROM
auctionValues
JOIN
products ON (auctionValues.productId = products.id)
JOIN
auctionOrders ON (auctionsValues.auctionOrderId = auctionOrders.id)
AND (auctionOrders.id = '987')
JOIN
users ON auctionValues.userId = users.id
WHERE
auctionValues.value >= MIN(auctionValues.value) * 1.05
ORDER BY
products.id ASC,
auctionValues.value DESC