Complete the code to get the absolute value of the column 'balance'.
SELECT [1](balance) FROM accounts;The ABS function returns the absolute value of a number, removing any negative sign.
Complete the code to find the remainder when 'total' is divided by 5.
SELECT [1](total, 5) FROM sales;
The MOD function returns the remainder of division between two numbers.
Fix the error in the code to correctly get the absolute value of 'debt'.
SELECT [1](debt) FROM customers;The ABS function requires parentheses around the column name. The correct syntax is ABS(debt).
Fill both blanks to calculate the remainder of 'score' divided by 10 and get its absolute value.
SELECT [1]([2](score, 10)) FROM results;
First, MOD(score, 10) gets the remainder. Then ABS(...) ensures the result is positive.
Fill all three blanks to select the absolute value of the remainder when 'amount' is divided by 7, naming the result 'mod_result'.
SELECT [1]([2](amount, 7)) AS [3] FROM payments;
MOD(amount, 7) gets the remainder. ABS makes it positive. AS names the column 'mod_result'.