Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. Write a SELECT statement that returns these columns from the Products table:

ID: 3851301 • Letter: 9

Question

9. Write a SELECT statement that returns these columns from the Products table: The list_price column A column that uses the FORMAT function to return the list_price column with 1 digit to the right of the decimal point A column that uses the CONVERT function to return the list_price column as an integer A column that uses the CAST function to return the list_price column as an integer

products v Columns product id category id product code product name description st price discount percent date added v Indexes PRIMARY product code products fk categories Foreign Keys products fk categories

Explanation / Answer

SELECT list_price, CAST(list_price AS DECIMAL(8,1)), CONVERT(INT, list_price),
CAST(list_price AS INT)
FROM Products;