Differences

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

Link to this comparison view

Next revision
Previous revision
dev:sql:functions:compare_date [2009/12/18 18:07]
tdo created
— (current)
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
-<​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ 
-====== Omnidex SQL Function: $COMPARE_DATE ====== 
-{{page>:​sql_bar&​nofooter&​noeditbtn}} 
-===== Description ===== 
-$COMPARE_DATES function 
  
-Omnidex supports a new function for comparing two date-class datatypes. ​ The $COMPARE_DATES function allows determines the interval between two dates and returns that value as a fractional floating point value. ​ The interval will default to days unless overridden using the unit parameter. 
- 
-The syntax of the $COMPARE_DATES function is: 
- 
-$COMPARE_DATES (date1, date2 [, [unit] [, options]) 
-  
-date1 an expression resulting in a date-class or string-class datatype ​ 
- 
-date2 an expression resulting in a date-class or string-class datatype 
- 
-unit a string containing a unit abbreviation identifying the type of interval. ​ The supported abbreviations are the same as those found in the EXTRACT function. 
- 
- options a string containing options for this functions. ​ No options exist at this time. 
- 
-The result of the $COMPARE_DATES function is an INTEGER datatype reflecting the number of units between the two dates. ​ 
- 
- 
-===== Syntax ===== 
-===== Example ===== 
-==== Example 1 ==== 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/functions/compare_date.1261159649.txt.gz ยท Last modified: 2012/10/26 14:52 (external edit)