DateDiff
Returns the number of intervals between two date/time values (date2 minus date1). See DateAdd for the interval names.
Numeric DateDiff(String date1, String date2, String interval)
SELECT DateDiff('2024-01-01', '2024-03-01', 'Day') as Days FROM SingleSELECT Round(DateDiff(DateTimeUTC(), DateAdd(DateTimeUTC(), 'Day', -10), 'Minute')) as Minutes FROM SingleSQL :: Syntax
Basic KBSQL syntax and some examples.
SQL :: ToLower
Returns the value converted to lower case.
SQL :: ToNumeric
Returns the value converted to a number.
SQL :: ToProper
Returns the value with the first letter of each word capitalized (title case).
SQL :: ToString
Returns the number as a string, so that + concatenates it instead of adding it.
SQL :: ToUpper
Returns the value converted to upper case.
SQL :: Trim
Removes white space from the start and end of the value. When characters is given, each of those characters is removed from the start and end instead.