Multiplication in SQL

Level 113 keystrokes

In SQL the asterisk (*) multiplies numbers; SELECT 7 * 8 returns one row with the value 56, under a column named after the expression.

SQL code

-- Between two numbers, * means multiplication (not "all columns")
-- No FROM is needed: returns 56 (7 × 8) in a column named "7 * 8"
1SELECT 7 * 8;

Output

+-------+
| 7 * 8 |
+-------+
|    56 |
+-------+
1 row in set
Practice typing this code

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

More SQL examples at level 1

← SQL typing practice