Apache Pinot Docs
Search…
latest
DIV
This section contains reference documentation for the DIV function.
Quotient of two values

Signature

DIV(col1, col2)

Usage Examples

These examples are based on the Batch Quick Start.
1
select homeRuns, numberOfGames, DIV(homeRuns, numberOfGames) AS total
2
from baseballStats
3
WHERE teamID = 'ML1'
4
AND yearID = 1956
5
AND playerName = 'Henry Louis'
Copied!
homeRuns
numberOfGames
total
26
153
0.16993464052287582
Last modified 1mo ago
Copy link