Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:sql:functions:mod [2009/12/07 15:29]
tdo created
dev:sql:functions:mod [2016/06/28 22:38]
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
-<​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ 
-====== Omnidex SQL Function: $MOD ====== 
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
-===== Description ===== 
-Returns "n modulus y". This is the remainder of n divided by y. 
  
-"​n"​ and "​y"​ may be a column , expression, or literal. 
- 
-The return value is INTEGER length 4. 
-===== Syntax ===== 
-  $MOD(<​column-spec|expression|constant>,<​column-spec|expression|constant>​) 
- 
-== n == 
-  
-Required. This can be a column, expression, or constant. 
- 
-== y == 
-  
-Required. This can be a column, expression, or constant. 
-===== Example ===== 
-==== Example 1 ==== 
-select orders_year,​ $MOD(order_year,​ 4) from orders 
- 
-ORDER_YEAR 
--------------- 
- 
-$MOD(ORDERS.ORDER_YEAR,​4) 
--------------------------- 
- 
-2003 
- 
-3 
- 
-2002 
- 
-2 
- 
-... 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/functions/mod.txt ยท Last modified: 2016/06/28 22:38 (external edit)