Round price to 2 decimals
SQL
Easy
2 views
Problem Description
Show product_id and rounded price.
Sample Test Case
Input:
Products(product_id, price)
Official Solution
SELECT product_id, ROUND(price, 2) AS price_2dp FROM Products;
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!