Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Review
So you think you can count?
Rounding functions and more
21. The ABS() function
Review and practice

Instruction

Good! Let's take a look at the ABS(x) function which returns the absolute value of x. Non-negative numbers will be expressed as they are, but negative ones will be expressed without the negative sign. Have a look:

SELECT ABS(3), ABS(-3);

The above query returns 3 twice. The absolute value of 3 is 3, as is the absolute value of -3.

Exercise

For each character, show its actual stat_modifier value and its stat_modifier's absolute value as the absolute_stat_modifier column.

Stuck? Here's a hint!

Use this expression: ABS(stat_modifier).