Subtracts two numeric values.

Syntax

expression - expression

Arguments

  • expression: a numeric expression

Examples

SELECT grossPay - withholding AS netPay FROM MYSQL.inventory.cust;

VALUES 12 - 8;
-- Returns 4