Which function measures a numeric value's distance from 0?
The ABS() function in SQL returns the absolute value of a given number, effectively measuring its distance from zero.
Example Usage:
sql
SELECT ABS(-50), ABS(50);
Result:
50 | 50
This function ensures that numbers are always positive, regardless of their original sign.
Why Other Options Are Incorrect:
Option A (CONCAT) (Incorrect): Used to combine strings (not numbers).
Option B (LOWER) (Incorrect): Converts text to lowercase, not numerical operations.
Option C (FROM) (Incorrect): Part of SELECT FROM queries, not a function.
Thus, the correct choice is ABS(), which computes the absolute value of a number.
Armanda
12 hours agoTyra
6 days agoCarmen
11 days agoRodolfo
16 days agoLeonor
21 days agoFallon
26 days agoFelicidad
1 month agoMose
1 month agoBarrett
1 month agoTonette
2 months agoErasmo
2 months agoQuentin
2 months agoAileen
2 months agoArleen
2 months agoEarnestine
2 months agoNieves
3 months agoEden
3 months agoCrista
3 months agoCammy
3 months ago