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