Numeric Operators

* Multiply

* is a binary operation to multiply two numbers together.

Example

SELECT 5 + 2
column
7

/ Divide

/ is a binary operation to divide two numbers.

Example

SELECT 5 / 2, 5.0 / 2.0
columncolumn1
22.5

% Modulo

% performs a modulo operation, returning the remainder of a division.

Example

SELECT 5 % 2
column
1

+ Add

+ performs an addition operation, for two numbers.

Example

SELECT 5 + 2
column
7

- Subtract

- performs a subtraction operation, for two numbers.

Example

SELECT 5 - 2
column
3

- Negate

- can also be used for unary negation.

Example

SELECT -5
column
-5