Apache Presto - Math Function mod(n,m)



Query

presto:default> select mod(2,4) as mod_value;

Result

 mod_value 
----------- 
    2

Here, the result of (2,4) modulus is 2.

apache_presto_sql_functions.htm
Advertisements