Complete the code to create a column with numeric precision of 5 and scale of 2.
CREATE TABLE products (price NUMERIC([1]));The NUMERIC(5, 2) means the number can have up to 5 digits in total, with 2 digits after the decimal point.
Complete the code to insert a value with two decimal places into the price column.
INSERT INTO products (price) VALUES ([1]);Since the price column has scale 2, values must have at most two digits after the decimal point.
Fix the error in the SELECT statement to round the price to 1 decimal place.
SELECT ROUND(price, [1]) FROM products;ROUND(price, 1) rounds the price to one decimal place.
Fill both blanks to create a table with a decimal column and insert a value with correct precision.
CREATE TABLE sales (amount DECIMAL([1], [2])); INSERT INTO sales (amount) VALUES (123.45);
DECIMAL(6, 2) means 6 total digits with 2 after the decimal point, so 123.45 fits.
Fill all three blanks to select prices rounded to 0 decimal places and filter prices greater than 100.
SELECT ROUND(price, [1]) AS rounded_price FROM products WHERE price [2] [3];
ROUND(price, 0) rounds to whole numbers. The WHERE clause filters prices greater than 100.