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.
Margurite
2 months agoHarris
2 months agoWillodean
2 months agoMariann
2 months agoMaynard
2 months agoArmanda
3 months agoTyra
3 months agoCarmen
3 months agoRodolfo
4 months agoLeonor
4 months agoFallon
4 months agoFelicidad
4 months agoMose
4 months agoBarrett
4 months agoTonette
5 months agoErasmo
5 months agoQuentin
5 months agoAileen
5 months agoArleen
5 months agoEarnestine
5 months agoNieves
6 months agoEden
6 months agoCrista
6 months agoCammy
6 months agoAdolph
25 days agoThomasena
1 month agoTracey
1 month agoDewitt
1 month agoAlbina
2 months ago