arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

SUB

This section contains reference documentation for the SUB function.

Difference between two values

hashtag
Signature

SUB(col1, col2)

hashtag
Usage Examples

These examples are based on the .

homeRuns
baseOnBalls
total
select homeRuns, baseOnBalls, SUB(homeRuns, baseOnBalls) AS total
from baseballStats 
WHERE teamID = 'ML1' 
AND yearID = 1956 
AND playerName = 'Henry Louis'

26

37

-11

Batch Quick Start