July 2010
Intermediate to advanced
840 pages
16h 33m
English
All other math functions are vendor extensions, but you can plan on several common ones in most SQL implementations. They are implemented under assorted names, and often with slightly different functionality.
(x MOD m) or MOD(x, m) is the function that performs modulo or remainder arithmetic. This is tricky when the values of x and m are not cardinals (i.e., positive, nonzero integers). Experiment and find out how your package handles negative numbers and decimal places.
In September 1996, Len Gallagher proposed an amendment for the MOD function in SQL3. Originally, the working draft defined MOD(x, m) only for positive values of both m and x, and left the result to be implementation-dependent ...
Read now
Unlock full access