DIV
DIV
DIV 함수는 두 값의 몫을 구하는 함수예요.
출처: 문서
본문
두 값의 몫을 구해요.
시그니처 (Signature)
DIV(col1, col2)
사용 예시 (Usage Examples)
다음 예시는 Batch Quick Start를 기반으로 해요.
select homeRuns, numberOfGames, DIV(homeRuns, numberOfGames) AS total
from baseballStats
WHERE teamID = 'ML1'
AND yearID = 1956
AND playerName = 'Henry Louis'
| homeRuns | numberOfGames | total |
|---|---|---|
| 26 | 153 | 0.16993464052287582 |