Multiple choice technology databases

You may use two consecutive minus signs in arithmetic expressions to indicate the subtraction of a negative value.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In SQL, two consecutive minus signs (--) are interpreted as the start of a single-line comment. Using them directly together in an arithmetic expression comments out the remainder of the line, causing syntax errors. To subtract a negative value, a space or parentheses must separate the operators.