Basic Addition in SQL
Level 114 keystrokes
SQL can perform arithmetic operations directly in SELECT statements.
SQL code
-- SELECT evaluates the arithmetic expression 10 + 5-- Returns 15; the column header is the expression itself1SELECT 10 + 5;Output
+----------+ | 10 + 5 | +----------+ | 15 | +----------+ 1 row in set
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this SQL code and how often they appear.
;× 1+× 1