Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space TFAC and version Draft
Info

Table Transformer is powered by the AlaSQL library. Find the list of SQL functions available in the macro below.

Autocompletion

...

width200px

Custom SQL query editor powered by AI

Use autocompletion for correct reference to column names

...

and SQL functions

...

:

  • Start typing, for example, "T1." and choose the

...

  • required column from the list. It helps to avoid typos
  • Start typing any function name and pick what you need from the dropdown list of supported functions/keywords
Handy Carousel

...

Image Added

Image Removed

General SQL syntax 

...

SELECT 'Column' FROM T*

SELECT 'Column name' FROM T1

SELECT 'Column Name' FROM T2

Image Added



The AI also enhances the SQL query editor and suggests variants of the possible queries while you are typing. The options change on the fly according to what you have already typed.

If the suggestion suits you, press Tab on your keyboard and the query will be inserted in the editor.

And if you use the Ctrl+F shortcut, the "Find and Replace" panel will be opened. It's handy when you copy/paste your queries and need to change only some parts.

Handy Carousel

Image Added

Image Added

Image Added

Image Added


General SQL syntax

Syntax typeDefinitionCharacter(s)Example
Table nameA title given to (a) table(s) placed inside Table Transformer in the order of placementT* - for all the tables in the macro body,
T1 - for the first table,
T2 - for the second one,
etc.

SELECT 'Column' FROM T*

SELECT 'Column name' FROM T1

SELECT 'Column Name' FROM T2

Column name

The title of a column from the source table utilized in the SQL query

Can be paired with Table name as a direct reference for a number of purposes: e.g. if column names  in T1 and T2 match

'  ' - Single quotes,

[  ] - Square brackets

'Column name'

[Column name]


T1.'Same Column name'

T2.'Same Column name'


Info

If a column name contains a s ingle quote as its part

...

The title of a column from the source table utilized in the SQL query

Can be paired with Table name as a direct reference for a number of purposes: e.g. if column names  in T1 and T2 match

...

'  ' - Single quotes,

[  ] - Square brackets

'Column name'

[Column name]

T1.'Same Column name'

T2.'Same Column name'

...

: e.g. D'column, type \ before it to avoid the single quote becoming syntax markup: e.g. 'D\'column', [D\'column] or T1.'D\'column' - in the SQL query

String constantEncloses some text between double quotes further utilized in the SQL query" " - Double quotes

"Some constant"

"Free text"

Number constantEncloses a number further utilized in the SQL queryNo additional markup

2077


Date constantEncloses a date between double quotes further utilized in the SQL query" " - Double quotes"25.05.2022"
Multi-line comments

The text included directly in the SQL query as clarification, new info, etc., but not displayed in the macro output

/*  */ - Slash + Asterisk

/* Such comment is present directly in the SQL query but not included in the output */


Functions and keywords

Table Filter
totalrow,,
hidelabelsfalse
ddSeparator\u0020
sparkNameSparkline
hidePaneFiltration panel
sparklinefalse
default,,
isFirstTimeEntertrue
cell-width150,150,150
hideColumnsfalse
customNoTableMsgfalse
disabledfalse
enabledInEditorfalse
globalFiltertrue
id1709048505344_1741075635
order0,1,2
hideControlstrue
inversefalse,false,false
numberingDynamic Ascending
columnType
sortFunction / Keyword ⇧
disableSavetrue
separatorPoint (.)
labelsType‚Function / Keyword‚Filter whole table
ddOperatorOR
userfilterFunction / Keyword
datepatterndd M yy
updateSelectOptionsfalse
worklog365|5|8|y w d h m|y w d h m
isORAND
Table Excerpt
hidetrue
nameSTATUSES

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

Status
subtletrue
colourGreen
titleLOGIC

Status
subtletrue
colourGreen
titleLOOP

Status
subtletrue
colourGreen
titleMATH

Status
subtletrue
colourGreen
titleAGGREGATION

Status
subtletrue
colourGreen
titleORDERING

Status
subtletrue
colourGreen
titleKEYWORD

Status
subtletrue
colourGreen
titleMERGING

Status
subtletrue
colourGreen
titleVARIABLES

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Status
subtletrue
colourGreen
titleTIME

Status
subtletrue
colourGreen
titleCONVERTING

Status
subtletrue
colourGreen
titleSEARCHING

Function / KeywordTypeDescription
ABS

Status
subtletrue
colourGreen
titleMATH

Returns the absolute (positive) value of a number
ALL

Status
subtletrue
colourGreen
titleLOGIC

Returns true if all of the subquery values meet the condition
AND

Status
subtletrue
colourGreen
titleLOGIC

Includes rows where all the conditions separated by AND are TRUE
ANY

Status
subtletrue
colourGreen
titleLOGIC

Returns true if any of the subquery values meet the condition
ARRAY

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

Creates an array
AS

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

Renames a column or table with an alias 
ASC

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleORDERING
 

Ascending sorting order
AT

Status
subtletrue
colourGreen
titleTIME


AVG

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION

Returns the average value of a group
BEGIN

Status
subtletrue
colourGreen
titleLOGIC
 

Status
subtletrue
colourGreen
titleLOOP
 

Starts code block for WHILE and IF statements
BETWEEN

Status
subtletrue
colourGreen
titleMATH

Selects values within a given range
BY

Status
subtletrue
colourGreen
titleAGGREGATION
 

Status
subtletrue
colourGreen
titleORDERING
 

Used with ORDER BY, GROUP BY
CASE

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleLOGIC
 

Creates different outputs based on conditions (see an example)
CAST

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleCONVERTING
 

Converts a value (of any type) into a specified datatype
CEIL

Status
subtletrue
colourGreen
titleMATH

Gets the smallest integer which is greater than, or equal to, the specified numeric expression
CHAR

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Returns the character with the specified integer

...

Unicode
CHECK

Status
subtletrue
colourGreen
titleLOGIC

Limits the value that can be placed in a column
COALESCE

Status
subtletrue
colourGreen
titleLOGIC

Returns the first non-null value in a list (see an example)
CONCAT

Status
subtletrue
colourGreen
titleMERGING

Concatenates values

...

(see an example)
CONCAT_VIEW

Status
subtletrue
colourGreen
titleMERGING

Concatenates values, preserving their original HTML format (see an example)
CONCAT_VIEW_AGGR

Status
subtletrue
colourGreen
titleMERGING
 

Status
subtletrue
colourGreen
titleAGGREGATION

Concatenates and aggregates values, preserving their original HTML format (see an example)
CORRESPONDING

Status
subtletrue
colourGreen
titleMERGING

Matches the columns in table-expressions by name and not by ordinal position
COUNT

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Returns the number of rows that matches a specified criteria (see an example)
CROSS

Status
subtletrue
colourGreen
titleMERGING

One of the Join types. Returns all rows for all possible combinations of two tables
CUBE

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Generates subtotals for all combinations of grouping columns specified in the GROUP BY clause
CURRENT_TIMESTAMP

Status
subtletrue
colourGreen
titleVARIABLES
 

Status
subtletrue
colourGreen
titleTIME
 

Returns the current timestamp of the operating system of the server on which the SQL Server Database runs
DATE

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleCONVERTING
 

A data type for storing a date (string like 'YYYYMMDD')
DATE_ADD

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME
 

Adds time values (as intervals) to a date value
DATE_SUB

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME
 

Subtracts a time/date interval from a date and then returns the date
DATEADD

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME

Adds time values (as intervals) to a date value (see an example)
DATEDIFF

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME
 

Returns the difference between two dates (see an example)
DAY

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME
 

Status
subtletrue
colourGreen
titleCONVERTING
 

Returns the day of the month for a date
DAYOFWEEK

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME
 

Returns the weekday index for a date


DEFAULT

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleLOGIC
 

Provides a default value for a column
DESC

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleORDERING
 

Descending sorting order
DISTINCT

Status
subtletrue
colourGreen
titleLOGIC
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Selects only distinct (different) values (see an example)
ELSE

Status
subtletrue
colourGreen
titleLOGIC

Introduces another statement that is executed when the IF condition is not satisfied
END

Status
subtletrue
colourGreen
titleLOGIC

Completes code block for WHILE and IF statements
ESCESCAPEAPE

Status
subtletrue
colourGreen
titleLOGIC
 

Status
subtletrue
colourGreen
titleSEARCHING
 

...

Used with LIKE, escapes characters
ESCAPEMARKUP

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Escapes special characters for wiki markup (see an example)
EXCEPT

Status
subtletrue
colourGreen
titleMERGING

Combine two SELECT statements and returns rows from the first SELECT statement that are not returned by the second SELECT statement
EXISTS

Status
subtletrue
colourGreen
titleLOGIC

Tests for the existence of any record in a subquery (see an example)
EXP

Status
subtletrue
colourGreen
titleMATH

Returns e raised to the power of the specified number
FALSE

Status
subtletrue
colourGreen
titleLOGIC

Logical false value
FIRST

Status
subtletrue
colourGreen
titleAGGREGATION

Returns the first value in the group
FLOOR

Status

...

subtletrue
colourGreen
titleMATH

...

subtletrue
colourGreen
titleMATH

Returns the largest integer value that is smaller than or equal to a number
FORMATDATE

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME
 

Converts major date formats(accordingly parsed by the macro, e.g. 17 Mar 2024) to either specified in the Table Transformer settings date format or the one set in the optional argument: FORMATDATE(Your "Date"/'Column name here',"mm/dd/y" <- optional argument) =
FORMATDATE("17 Mar 2024", "mm/dd/y") → 03/17/24 (see an example)

FORMATMARKDOWN

Status
subtletrue
colourGreen
titleFORMATTING

Applies Markdown syntax to table cells (see an example)
FORMATNUMBER

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleFORMATTING

Format numbers (accordingly parsed by the macro, e.g. 14) to either the settings specified in the Table Transformer macro or those corresponding to the optional arguments set: FORMATNUMBER (Your "Number"/'Column name here', "decimal_separator"(e.g. "," or "."), "thousands_separator"(e.g. "," or "."), decimal_places (e.g. 2) <-three optional arguments used simultaneously) =  FORMATNUMBER(1400, ",", ".", 2) → 1.400,00 (see an example)
FORMATTIME

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME
 

Converts

...

...

time formatto the calculated time:

...

 FORMATTIME (calculated_

...

time)

...

FORMATWIKI

Status
subtletrue
colourGreen
titleFORMATTING

Applies 

...

...

FORMATWORKLOG

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

Converts worklogs to the specified

...

...

FORMATWORKLOG (calculated_worklog) (see an example)
FROM

Status
subtletrue
colourGreen
titleKEYWORD

Specifies which table to select or delete data from
FULL

Status
subtletrue
colourGreen
titleMERGING

FULL OUTER JOIN: returns all rows when there is a match in either left table or right table
GETDATE

...

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME

...

Returns the current system date and time
GREATEST

...

Status
subtletrue
colourGreen
title

...

MATH
 

...

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

Returns the greatest value of the list of arguments
GROUP

Status
subtletrue
colourGreen
title

...

AGGREGATION

Groups the result set (used with aggregate functions: COUNT, MAX, MIN, SUM, AVG)
GROUPING

...

Status
subtletrue
colourGreen
title

...

LOGIC
 

Status
subtletrue
colourGreen
titleAGGREGATION

...

 

Indicates whether the specified column in a GROUP BY Clause aggregated or not
HAVING

...

Status
subtletrue
colourGreen
title

...

LOGIC
 

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

Used instead of WHERE with aggregate functions
HOUR

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

...

Returns the hour part of a datetime
HTML_DECODE

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

...

Converts the displayed string into HTML markup and extracts text content from it
IF

...

Status
subtletrue
colourGreen
titleLOGIC

...

Conditional statement
IFNULL

Status
subtletrue
colourGreen
title

...

LOGIC

Returns a specified value if the expression is NULL
IIF

...

Status
subtletrue
colourGreen
titleLOGIC

...

Accepts three arguments. It evaluates the first argument and returns the second argument if the first argument is true; otherwise, it returns the second argument
IN

Status
subtletrue
colourGreen
title

...

LOGIC

Allows you to specify multiple values in a WHERE clause

INNER

...

Status
subtletrue
colourGreen
title

...

MERGING

INNER JOIN: returns rows that have matching values in both tables
INSERT

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING

Inserts new records into a table (see an example)
INSTR

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Returns the position of the first occurrence of a string in another string
INTERSECT

...

Status
subtletrue
colourGreen
title

...

MERGING

Intersects two SELECT results
INTERVAL

...

Status
subtletrue
colourGreen
title

...

TIME

Defines a date/time interval
IS

...

Status
subtletrue
colourGreen
titleLOGIC

...

Allows you to specify multiple values in a WHERE clause

...


ISNULL

Status
subtletrue
colourGreen
title

...

LOGIC

Returns TRUE or FALSE depending on whether an expression is NULL

JOIN

...

Status
subtletrue
colourGreen
title

...

MERGING

Joins tables (see an example)

...

LAST

Status
subtletrue
colourGreen
title

...

DATA_

...

MANIPULATING

Returns the

...

last value of the

...

selected column
LCASE

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Converts a string to lower-case
LEAST

...

Status
subtletrue
colourGreen
titleTIME

...

Status
subtletrue
colourGreen
title

...

MATH

...

 

Status
subtletrue
colourGreen
title

...

Returns TRUE or FALSE depending on whether an expression is NULL

AGGREGATION
 

Returns the smallest value of the list of arguments
LEFT

...

Status
subtletrue
colourGreen
titleMERGING

...

LEFT JOIN: returns all rows from the left table, and the matching rows from the right table
LENGTH

...

Status
subtletrue
colourGreen
title

...

STRING_

...

OPERATORS

Returns the

...

length of a string (in bytes)
LIKE

Status
subtletrue
colourGreen
titleLOGIC
 

...

Status
subtletrue
colourGreen
title

...

SEARCHING
 

Searches for a specified pattern in a column
LIMIT

...

Status
subtletrue
colourGreen
title

...

SEARCHING

Limit the number of records from the result set
LOG

Status
subtletrue
colourGreen
title

...

MATH

...

Returns the

...

natural logarithm
MATCH_REGEXP

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleLOGIC

...

Status
subtletrue
colourGreen
title

...

SEARCHING

Searches for a regular expression in the input string and allows to add flags (i.e. g (global), i (insensitive), etc.) to regular expressions: MATCH_REGEXP ('Column1',"[a-f]{6}","g") (see an example)
MAX

...

Status
subtletrue
colourGreen
title

...

MATH
 

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

...

Takes the name of a column as an argument and returns the largest value in that column
MEDIAN

Status
subtletrue
colourGreen
titleMATH
 

...

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

...

Returns the

...

median value of a group (see an example)
MID

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Extracts a substring from a string (starting at any position)
MIN

...

Status
subtletrue
colourGreen
title

...

MATH
 

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

Takes the name of a column as an argument and returns the smallest value in that column
MINUTE

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

...

Returns the

...

minute part of a

...

datetime value
MONTH

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

Returns

...

the month part of a date
MULT

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION

Takes the name of a column as an argument and returns multiplying of all the values in that column

NATURAL

...

Status
subtletrue
colourGreen
title

...

MERGING

NATURAL JOIN: analyzes columns in two joined tables and makes a join by columns with similar names
NOT

...

Status
subtletrue
colourGreen
title

...

LOGIC

Includes rows where a condition is not TRUE
NOW

Status
subtletrue
colourGreen
title

...

VARIABLES

Returns current date and time
NULL

...

Status
subtletrue
colourGreen
title

...

LOGIC

A field with no value
NULLIF

...

Status
subtletrue
colourGreen
title

...

LOGIC

Compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned
OF

...

Status
subtletrue
colourGreen
title

...

LOGIC

Allows you to specify multiple values in a WHERE clause
OFFSET

...

Status
subtletrue
colourGreen
title

...

SEARCHING

...

Skips the first N rows in a result set before starting to return any rows
ON

...

Status
subtletrue
colourGreen
title

...

MERGING

...


OR

Status
subtletrue
colourGreen
title

...

Takes the name of a column as an argument and returns multiplying of all the values in that column

LOGIC

Includes rows where either condition is TRUE
ORDER

...

Status
subtletrue
colourGreen
title

...

ORDERING

Sorts the result set in ascending or descending order
OUT

...

Status
subtletrue
colourGreen
titleLOGIC

...

Opposite to IN
OUTER

...

Status
subtletrue
colourGreen
title

...

MERGING

OUTER JOIN: returns all rows when there is a match in either left table or right table
PERCENT

...

Status
subtletrue
colourGreen
title

...

SEARCHING

Indicates that the query returns N percentage of rows
PIVOT

...

Status
subtletrue
colourGreen
title

...

AGGREGATION

Converts data from row level to column level (see an example)

POWER

...

Status
subtletrue
colourGreen
title

...

MATH

Returns the value of a number raised to the power of another number
QUART

Status
subtletrue
colourGreen
titleMATH
 

...

Status
subtletrue
colourGreen
title

...

AGGREGATION

...

Returns the first

...

quartile of a group
QUART2

...

Status
subtletrue
colourGreen
title

...

MATH

...

 

Status
subtletrue
colourGreen
title

...

AGGREGATION

Returns the second quartile of a group
QUART3

...

Status
subtletrue
colourGreen
title

...

MATH
 

Status
subtletrue
colourGreen
title

...

AGGREGATION

Returns the third quartile of a group
RANDOM

...

Status
subtletrue
colourGreen
title

...

VARIABLES


REGEXP_LIKE

...

Status
subtletrue
colourGreen
title

...

LOGIC
 

...

Status
subtletrue
colourGreen
title

...

Converts data from row level to column level

STRING_OPERATORS
 

...

Status
subtletrue
colourGreen
title

...

SEARCHING
 

Returns

...

rows that match a regular expression pattern
REGEXP_REPLACE

...

Status
subtletrue
colourGreen
title

...

LOGIC

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Status
subtletrue
colourGreen
title

...

SEARCHING

Returns a modified version of the source string where occurrences of the regular expression pattern found in the source string are replaced with the specified replacement string (see an example)

REPLACE

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Replaces all occurrences of a substring within a string with a new substring
REPLACE_VIEW

...

Status
subtletrue
colourGreen
title

...

Status
subtletrue
colourGreen
titleAGGREGATION

...

Status
subtletrue
colourGreen
titleVARIABLES

...

STRING_OPERATORS

Replaces all occurrences of a substring within a string with a new substring and preserves the original HTML format (see an example)
RIGHT

Status
subtletrue
colourGreen
title

...

MERGING

RIGHT JOIN: returns all rows from the right table, and the matching rows from the left table
ROLLUP

Status
subtletrue
colourGreen
title

...

MATH
 

Status
subtletrue
colourGreen
title

...

AGGREGATION
 

...

Creates subtotals and grand totals for a set of columns (GROUP BY ROLLUP)
ROUND

...

Status
subtletrue
colourGreen
title

...

MATH

Rounds a number to a specified number of decimal places
ROWNUM

...

Status
subtletrue
colourGreen
title

...

DATA_

...

MANIPULATING

Adds row numbering to a table (see an example)
SEARCH

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING

Searches for a specified pattern (see an example)
SECOND

...

Status
subtletrue
colourGreen
title

...

DATA_MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

...

Return the seconds part of a datetime value
SELECT

...

Status
subtletrue
colourGreen
titleMATH

...

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

...

Selects data from a database
SOME

...

Status
subtletrue
colourGreen
title

...

LOGIC

Compares a value to each value in a list or results from a query and evaluates to TRUE if the result of an inner query contains at least one row
SPLIT

...

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

Splits a string into an array of substrings using a separator (see an example)

SPLIT_VIEW

...

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

...

Status
subtletrue
colourGreen
title

...

STRING_OPERATORS

...

Splits a string into an array of substrings using a separator and preserves the original HTML format (see an example)

SQRT

Status
subtletrue
colourGreen
titleMATH

Returns the square root of a number
STDDEV

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Returns the population standard deviation of expression (see an example)
STDEV

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Returns the sample standard deviation of expression (see an example)
SUBDATE

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME
 

Subtracts a time/date interval from a date and then returns the date
SUBSTR

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Extracts a substring from a string (starting at any position)
SUBSTRING

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Allows to extract a substring from a string
SUBSTRING_VIEW

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Allows to extract a substring from a string

...

and preserves the original HTML format (see an example)
SUM

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Takes the name of a column as an argument and returns the sum of all the

...

values in that column (see an example)
TEXT

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Formats the source data as string and returns it without additional formatting (see an example)
THEN

Status
subtletrue
colourGreen
titleLOGIC

A result expression in a search condition
TIME

Status
subtletrue
colourGreen
titleDATA_MANIPULATING
 

Status
subtletrue
colourGreen
titleTIME
 

Extracts the time part from a given time/datetime

Status
subtletrue
colourGreen
titleCONVERTING

Returns a datetime value based on a date or datetime value
TIMESTAMPDIFF

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleTIME
 

Returns the difference between two dates

TO

Status
subtletrue
colourGreen
titleKEYWORD


Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Removes the space character or other specified characters from the start or end of a string
TRUE

Status
subtletrue
colourGreen
titleLOGIC

Logical true value
UCASE

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Converts a string to upper-case
UNION

Status
subtletrue
colourGreen
titleMERGING

Combines the result set of two or more SELECT statements (

...

only distinct values)
UNPIVOT

Status
subtletrue
colourGreen
titleAGGREGATION

Converts data from column level to row level, ungroups data (see an example
UPDATE

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

Modifies the existing records in a table (see an example)
UPPER

Status
subtletrue
colourGreen
titleSTRING_OPERATORS

Converts a string to upper-case
USING

Status
subtletrue
colourGreen
titleLOGIC

Matches only one column when more than one column matches
VAR

Status
subtletrue
colourGreen
titleMATH
 

Status
subtletrue
colourGreen
titleAGGREGATION
 

Returns the statistical variance of all values in the specified expression (see an example)
VAR_POP

Status
subtletrue
colourGreen
titleAGGREGATION

Population variance. Returns 0 if all of the values in the data set have the same value (no variability). Returns 0 if the data set consists of only one value (no possible variability). Returns NULL if the data set has no values
VAR_SAMP

Status
subtletrue
colourGreen
titleAGGREGATION

Sample variance. Returns 0 if all of the values in the data set have the same value (no variability). Returns NULL if the data set consists of only one value (no possible variability). Returns NULL if the data set has no values
VARCHAR

Status
subtletrue
colourGreen
titleKEYWORD

Accepts character strings of a variable length is up to the maximum length specified in the data type declaration
VARP

Status
subtletrue
colourGreen
titleAGGREGATION

Returns the Variance for the population of the total number of records present in the specified column (see an example)
WEEKDAY

Status
subtletrue
colourGreen
titleDATA_MANIPULATING

...

Status
subtletrue
colourGreen
titleTIME
 

...

Status
subtletrue
colourGreen
titleLOGIC

...

 

Status
subtletrue
colourGreen
title

...

TIME
 

...

Returns the weekday number for a given date
WHEN

...

Status
subtletrue
colourGreen
title

...

LOGIC

A condition expression in a search condition
WHERE

...

Status
subtletrue
colourGreen
title

...

LOGIC
 

Status
subtletrue
colourGreen
title

...

Status
subtletrue
colourGreen
titleMATH
 

SEARCHING
 

Filters a result set to include only records that fulfill a specified condition
WHILE

Status
subtletrue
colourGreen
title

...

LOOP

Sets a condition for the repeated execution of an SQL statement or statement block
YEAR

...

Status
subtletrue
colourGreen
title

...

DATA_

...

MANIPULATING
 

Status
subtletrue
colourGreen
title

...

TIME
 

Returns an integer value which represents the year of the specified date

Conversion types

  • ::Date
  • ::string
  • ::number
Info

For date conversion see also the FORMATDATE, FORMATTIME, FORMATWORKLOG functions.


JavaScript methods

After converting to date you can use JavaScript date functions, for example:

Code Block
'Column with dates'::Date→toDateString()

Find an example here.

After converting to string you can use JavaScript string functions, for example:

Code Block
'Column with strings'::string->split("The delimiter")->0

'Column with strings'::string→length

After converting to number you can use JavaScript number functions, for example:

Code Block
'Column with numbers'::number→toFixed(1)


Info

You need to convert only values with a different or indefinite type. In other cases, it's is not necessary:

Code Block
'Column with numbers'->toFixed(1)

Example

The source table:
Image Modified

The result:
Image Modified

SQL query:

Code Block
languagesql
SELECT 
T1.'String'->length AS 'Length',
T1.'String'->split("b")->0 AS 'Splitting',
T1.'Number'->toFixed(1) AS 'Rounding to tenth',
T1.'Date'::Date->getFullYear() AS 'Full year'
FROM T*