This section contains reference documentation for the lcm function.
Returns the least common multiple of two long values. Returns 0 if either input is 0.
0
lcm(col1, col2)
col1
LONG
First value
col2
Second value
Returns: LONG
SELECT lcm(4, 6) AS value FROM myTable
12
SELECT lcm(0, 5) AS value FROM myTable
Last updated 3 months ago
Was this helpful?