Hello,
I've written a query that works well and that gives me a line by line discount percentage of each item. The part that is annoying me is that instead of giving me a whole number, like 25, it gives me 25.00. Is there a way to change this? I've attached the query so you have an idea of what I'm doing. Thanks for the help!
I've written a query that works well and that gives me a line by line discount percentage of each item. The part that is annoying me is that instead of giving me a whole number, like 25, it gives me 25.00. Is there a way to change this? I've attached the query so you have an idea of what I'm doing. Thanks for the help!
Code:
SELECT Products.[Store UPC] AS 'SKU', Products.UPC, SalesItems.Description, SalesItems.Price, SalesItems.MSRP, ROUND(100-(100*(SalesItems.Price/SalesItems.MSRP)),0) AS 'Discount' FROM SalesItems LEFT JOIN Products ON SalesItems.ProductID = Products.ID WHERE SalesID = (SELECT ID FROM Sales WHERE Barcode = <<Sale Barcode>>) AND SalesItems.Hide = 0 ORDER BY Discount, SalesItems.Description
Comment