Smart SQL Tools for Every Database

Reference Library

SQL Function Explorer

Search 259 SQL function pages across MySQL, PostgreSQL, SQL Server, and Oracle. Each page includes syntax, examples, and practical usage notes aligned with this site's tools.

Find Functions Fast

Showing 259 of 259 functions.

MySQL String

MySQL CONCAT() Function

Learn how to use the MySQL CONCAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CONCAT(value1, value2, ...)
MySQL String

MySQL CONCAT_WS() Function

Learn how to use the MySQL CONCAT_WS function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CONCAT_WS(value1, value2, ...)
MySQL String

MySQL SUBSTRING() Function

Learn how to use the MySQL SUBSTRING function for text and string manipulation with syntax, examples, and related SQL dialect notes.

SUBSTRING(text, start, length)
MySQL String

MySQL LEFT() Function

Learn how to use the MySQL LEFT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LEFT(text, number_of_characters)
MySQL String

MySQL RIGHT() Function

Learn how to use the MySQL RIGHT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RIGHT(text, number_of_characters)
MySQL String

MySQL REPLACE() Function

Learn how to use the MySQL REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REPLACE(text, search, replacement)
MySQL String

MySQL TRIM() Function

Learn how to use the MySQL TRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TRIM(text)
MySQL String

MySQL LTRIM() Function

Learn how to use the MySQL LTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LTRIM(text)
MySQL String

MySQL RTRIM() Function

Learn how to use the MySQL RTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RTRIM(text)
MySQL String

MySQL UPPER() Function

Learn how to use the MySQL UPPER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

UPPER(text)
MySQL String

MySQL LOWER() Function

Learn how to use the MySQL LOWER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LOWER(text)
MySQL String

MySQL LENGTH() Function

Learn how to use the MySQL LENGTH function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LENGTH(text)
MySQL String

MySQL CHAR_LENGTH() Function

Learn how to use the MySQL CHAR_LENGTH function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CHAR_LENGTH(text)
MySQL String

MySQL LOCATE() Function

Learn how to use the MySQL LOCATE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LOCATE(search_text, text)
MySQL String

MySQL INSTR() Function

Learn how to use the MySQL INSTR function for text and string manipulation with syntax, examples, and related SQL dialect notes.

INSTR(search_text, text)
MySQL String

MySQL LPAD() Function

Learn how to use the MySQL LPAD function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LPAD(text)
MySQL String

MySQL RPAD() Function

Learn how to use the MySQL RPAD function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RPAD(text)
MySQL String

MySQL REVERSE() Function

Learn how to use the MySQL REVERSE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REVERSE(text)
MySQL String

MySQL REPEAT() Function

Learn how to use the MySQL REPEAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REPEAT(text)
MySQL String

MySQL REGEXP_REPLACE() Function

Learn how to use the MySQL REGEXP_REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REGEXP_REPLACE(text, search, replacement)
MySQL Date

MySQL NOW() Function

Learn how to use the MySQL NOW date function with practical examples and cross-dialect alternatives.

NOW()
MySQL Date

MySQL CURDATE() Function

Learn how to use the MySQL CURDATE date function with practical examples and cross-dialect alternatives.

CURDATE()
MySQL Date

MySQL CURRENT_DATE() Function

Learn how to use the MySQL CURRENT_DATE date function with practical examples and cross-dialect alternatives.

CURRENT_DATE()
MySQL Date

MySQL CURRENT_TIMESTAMP() Function

Learn how to use the MySQL CURRENT_TIMESTAMP date function with practical examples and cross-dialect alternatives.

CURRENT_TIMESTAMP()
MySQL Date

MySQL DATE_ADD() Function

Learn how to use the MySQL DATE_ADD date function with practical examples and cross-dialect alternatives.

DATE_ADD(date, INTERVAL value unit)
MySQL Date

MySQL DATE_SUB() Function

Learn how to use the MySQL DATE_SUB date function with practical examples and cross-dialect alternatives.

DATE_SUB(date, INTERVAL value unit)
MySQL Date

MySQL DATEDIFF() Function

Learn how to use the MySQL DATEDIFF date function with practical examples and cross-dialect alternatives.

DATEDIFF(date1, date2)
MySQL Date

MySQL DATE_FORMAT() Function

Learn how to use the MySQL DATE_FORMAT date function with practical examples and cross-dialect alternatives.

DATE_FORMAT(date, format)
MySQL Date

MySQL YEAR() Function

Learn how to use the MySQL YEAR date function with practical examples and cross-dialect alternatives.

YEAR()
MySQL Date

MySQL MONTH() Function

Learn how to use the MySQL MONTH date function with practical examples and cross-dialect alternatives.

MONTH()
MySQL Date

MySQL DAY() Function

Learn how to use the MySQL DAY date function with practical examples and cross-dialect alternatives.

DAY()
MySQL Date

MySQL DAYNAME() Function

Learn how to use the MySQL DAYNAME date function with practical examples and cross-dialect alternatives.

DAYNAME()
MySQL Date

MySQL MONTHNAME() Function

Learn how to use the MySQL MONTHNAME date function with practical examples and cross-dialect alternatives.

MONTHNAME()
MySQL Date

MySQL LAST_DAY() Function

Learn how to use the MySQL LAST_DAY date function with practical examples and cross-dialect alternatives.

LAST_DAY()
MySQL Date

MySQL STR_TO_DATE() Function

Learn how to use the MySQL STR_TO_DATE date function with practical examples and cross-dialect alternatives.

STR_TO_DATE()
MySQL Date

MySQL TIMESTAMPDIFF() Function

Learn how to use the MySQL TIMESTAMPDIFF date function with practical examples and cross-dialect alternatives.

TIMESTAMPDIFF(date1, date2)
MySQL NULL

MySQL IFNULL() Function

Learn how to use the MySQL IFNULL function to handle NULL values and default replacements.

IFNULL(value, replacement)
MySQL NULL

MySQL COALESCE() Function

Learn how to use the MySQL COALESCE function to handle NULL values and default replacements.

COALESCE(value1, value2, ...)
MySQL NULL

MySQL NULLIF() Function

Learn how to use the MySQL NULLIF function to handle NULL values and default replacements.

NULLIF(value1, value2)
MySQL Aggregate

MySQL COUNT() Function

Learn how to use the MySQL COUNT aggregate function for summary queries and reports.

COUNT(*) or COUNT(column)
MySQL Aggregate

MySQL SUM() Function

Learn how to use the MySQL SUM aggregate function for summary queries and reports.

SUM(expression)
MySQL Aggregate

MySQL AVG() Function

Learn how to use the MySQL AVG aggregate function for summary queries and reports.

AVG(expression)
MySQL Aggregate

MySQL MIN() Function

Learn how to use the MySQL MIN aggregate function for summary queries and reports.

MIN(expression)
MySQL Aggregate

MySQL MAX() Function

Learn how to use the MySQL MAX aggregate function for summary queries and reports.

MAX(expression)
MySQL Aggregate

MySQL GROUP_CONCAT() Function

Learn how to use the MySQL GROUP_CONCAT aggregate function for summary queries and reports.

GROUP_CONCAT(expression, delimiter)
MySQL Aggregate

MySQL BIT_AND() Function

Learn how to use the MySQL BIT_AND aggregate function for summary queries and reports.

BIT_AND(expression)
MySQL Aggregate

MySQL BIT_OR() Function

Learn how to use the MySQL BIT_OR aggregate function for summary queries and reports.

BIT_OR(expression)
MySQL Aggregate

MySQL STDDEV() Function

Learn how to use the MySQL STDDEV aggregate function for summary queries and reports.

STDDEV(expression)
MySQL Aggregate

MySQL VARIANCE() Function

Learn how to use the MySQL VARIANCE aggregate function for summary queries and reports.

VARIANCE(expression)
MySQL Numeric

MySQL ROUND() Function

Learn how to use the MySQL ROUND numeric function for calculations in SQL.

ROUND(number, decimal_places)
MySQL Numeric

MySQL CEIL() Function

Learn how to use the MySQL CEIL numeric function for calculations in SQL.

CEIL(number)
MySQL Numeric

MySQL FLOOR() Function

Learn how to use the MySQL FLOOR numeric function for calculations in SQL.

FLOOR(number)
MySQL Numeric

MySQL ABS() Function

Learn how to use the MySQL ABS numeric function for calculations in SQL.

ABS(number)
MySQL Numeric

MySQL MOD() Function

Learn how to use the MySQL MOD numeric function for calculations in SQL.

MOD(number, divisor)
MySQL Numeric

MySQL POWER() Function

Learn how to use the MySQL POWER numeric function for calculations in SQL.

POWER(number, exponent)
MySQL Numeric

MySQL SQRT() Function

Learn how to use the MySQL SQRT numeric function for calculations in SQL.

SQRT(number)
MySQL Numeric

MySQL RAND() Function

Learn how to use the MySQL RAND numeric function for calculations in SQL.

RAND(number)
MySQL Numeric

MySQL GREATEST() Function

Learn how to use the MySQL GREATEST numeric function for calculations in SQL.

GREATEST(number)
MySQL Numeric

MySQL LEAST() Function

Learn how to use the MySQL LEAST numeric function for calculations in SQL.

LEAST(number)
MySQL JSON

MySQL JSON_EXTRACT() Function

Learn how to use the MySQL JSON_EXTRACT JSON function to read or modify JSON values in SQL.

JSON_EXTRACT(json_value, path)
MySQL JSON

MySQL JSON_ARRAY() Function

Learn how to use the MySQL JSON_ARRAY JSON function to read or modify JSON values in SQL.

JSON_ARRAY(json_value, path)
MySQL JSON

MySQL JSON_OBJECT() Function

Learn how to use the MySQL JSON_OBJECT JSON function to read or modify JSON values in SQL.

JSON_OBJECT(json_value, path)
MySQL JSON

MySQL JSON_SET() Function

Learn how to use the MySQL JSON_SET JSON function to read or modify JSON values in SQL.

JSON_SET(json_value, path)
MySQL JSON

MySQL JSON_REMOVE() Function

Learn how to use the MySQL JSON_REMOVE JSON function to read or modify JSON values in SQL.

JSON_REMOVE(json_value, path)
MySQL JSON

MySQL JSON_CONTAINS() Function

Learn how to use the MySQL JSON_CONTAINS JSON function to read or modify JSON values in SQL.

JSON_CONTAINS(json_value, path)
MySQL JSON

MySQL JSON_KEYS() Function

Learn how to use the MySQL JSON_KEYS JSON function to read or modify JSON values in SQL.

JSON_KEYS(json_value, path)
MySQL JSON

MySQL JSON_LENGTH() Function

Learn how to use the MySQL JSON_LENGTH JSON function to read or modify JSON values in SQL.

JSON_LENGTH(json_value, path)
MySQL Window

MySQL ROW_NUMBER() Function

Learn how to use the MySQL ROW_NUMBER window function for ranking, offsets, and analytical queries.

ROW_NUMBER() OVER (ORDER BY column)
MySQL Window

MySQL RANK() Function

Learn how to use the MySQL RANK window function for ranking, offsets, and analytical queries.

RANK() OVER (ORDER BY column)
MySQL Window

MySQL DENSE_RANK() Function

Learn how to use the MySQL DENSE_RANK window function for ranking, offsets, and analytical queries.

DENSE_RANK() OVER (ORDER BY column)
MySQL Window

MySQL LAG() Function

Learn how to use the MySQL LAG window function for ranking, offsets, and analytical queries.

LAG(column, offset) OVER (ORDER BY column)
MySQL Window

MySQL LEAD() Function

Learn how to use the MySQL LEAD window function for ranking, offsets, and analytical queries.

LEAD(column, offset) OVER (ORDER BY column)
MySQL Window

MySQL FIRST_VALUE() Function

Learn how to use the MySQL FIRST_VALUE window function for ranking, offsets, and analytical queries.

FIRST_VALUE() OVER (ORDER BY column)
MySQL Window

MySQL LAST_VALUE() Function

Learn how to use the MySQL LAST_VALUE window function for ranking, offsets, and analytical queries.

LAST_VALUE() OVER (ORDER BY column)
MySQL Window

MySQL NTILE() Function

Learn how to use the MySQL NTILE window function for ranking, offsets, and analytical queries.

NTILE() OVER (ORDER BY column)
PostgreSQL String

PostgreSQL CONCAT() Function

Learn how to use the PostgreSQL CONCAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CONCAT(value1, value2, ...)
PostgreSQL String

PostgreSQL STRING_AGG() Function

Learn how to use the PostgreSQL STRING_AGG function for text and string manipulation with syntax, examples, and related SQL dialect notes.

STRING_AGG(expression, delimiter)
PostgreSQL String

PostgreSQL SPLIT_PART() Function

Learn how to use the PostgreSQL SPLIT_PART function for text and string manipulation with syntax, examples, and related SQL dialect notes.

SPLIT_PART(text)
PostgreSQL String

PostgreSQL SUBSTRING() Function

Learn how to use the PostgreSQL SUBSTRING function for text and string manipulation with syntax, examples, and related SQL dialect notes.

SUBSTRING(text, start, length)
PostgreSQL String

PostgreSQL POSITION() Function

Learn how to use the PostgreSQL POSITION function for text and string manipulation with syntax, examples, and related SQL dialect notes.

POSITION(search_text, text)
PostgreSQL String

PostgreSQL REPLACE() Function

Learn how to use the PostgreSQL REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REPLACE(text, search, replacement)
PostgreSQL String

PostgreSQL TRIM() Function

Learn how to use the PostgreSQL TRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TRIM(text)
PostgreSQL String

PostgreSQL LTRIM() Function

Learn how to use the PostgreSQL LTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LTRIM(text)
PostgreSQL String

PostgreSQL RTRIM() Function

Learn how to use the PostgreSQL RTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RTRIM(text)
PostgreSQL String

PostgreSQL UPPER() Function

Learn how to use the PostgreSQL UPPER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

UPPER(text)
PostgreSQL String

PostgreSQL LOWER() Function

Learn how to use the PostgreSQL LOWER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LOWER(text)
PostgreSQL String

PostgreSQL LENGTH() Function

Learn how to use the PostgreSQL LENGTH function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LENGTH(text)
PostgreSQL String

PostgreSQL LEFT() Function

Learn how to use the PostgreSQL LEFT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LEFT(text, number_of_characters)
PostgreSQL String

PostgreSQL RIGHT() Function

Learn how to use the PostgreSQL RIGHT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RIGHT(text, number_of_characters)
PostgreSQL String

PostgreSQL REGEXP_REPLACE() Function

Learn how to use the PostgreSQL REGEXP_REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REGEXP_REPLACE(text, search, replacement)
PostgreSQL String

PostgreSQL TO_CHAR() Function

Learn how to use the PostgreSQL TO_CHAR function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TO_CHAR(text)
PostgreSQL Date

PostgreSQL NOW() Function

Learn how to use the PostgreSQL NOW date function with practical examples and cross-dialect alternatives.

NOW()
PostgreSQL Date

PostgreSQL CURRENT_DATE() Function

Learn how to use the PostgreSQL CURRENT_DATE date function with practical examples and cross-dialect alternatives.

CURRENT_DATE()
PostgreSQL Date

PostgreSQL CURRENT_TIMESTAMP() Function

Learn how to use the PostgreSQL CURRENT_TIMESTAMP date function with practical examples and cross-dialect alternatives.

CURRENT_TIMESTAMP()
PostgreSQL Date

PostgreSQL DATE_TRUNC() Function

Learn how to use the PostgreSQL DATE_TRUNC date function with practical examples and cross-dialect alternatives.

DATE_TRUNC(part, date)
PostgreSQL Date

PostgreSQL EXTRACT() Function

Learn how to use the PostgreSQL EXTRACT date function with practical examples and cross-dialect alternatives.

EXTRACT(part FROM date)
PostgreSQL Date

PostgreSQL AGE() Function

Learn how to use the PostgreSQL AGE date function with practical examples and cross-dialect alternatives.

AGE()
PostgreSQL Date

PostgreSQL TO_DATE() Function

Learn how to use the PostgreSQL TO_DATE date function with practical examples and cross-dialect alternatives.

TO_DATE()
PostgreSQL Date

PostgreSQL TO_TIMESTAMP() Function

Learn how to use the PostgreSQL TO_TIMESTAMP date function with practical examples and cross-dialect alternatives.

TO_TIMESTAMP()
PostgreSQL Date

PostgreSQL MAKE_DATE() Function

Learn how to use the PostgreSQL MAKE_DATE date function with practical examples and cross-dialect alternatives.

MAKE_DATE()
PostgreSQL Date

PostgreSQL JUSTIFY_DAYS() Function

Learn how to use the PostgreSQL JUSTIFY_DAYS date function with practical examples and cross-dialect alternatives.

JUSTIFY_DAYS()
PostgreSQL Date

PostgreSQL JUSTIFY_INTERVAL() Function

Learn how to use the PostgreSQL JUSTIFY_INTERVAL date function with practical examples and cross-dialect alternatives.

JUSTIFY_INTERVAL()
PostgreSQL NULL

PostgreSQL COALESCE() Function

Learn how to use the PostgreSQL COALESCE function to handle NULL values and default replacements.

COALESCE(value1, value2, ...)
PostgreSQL NULL

PostgreSQL NULLIF() Function

Learn how to use the PostgreSQL NULLIF function to handle NULL values and default replacements.

NULLIF(value1, value2)
PostgreSQL Aggregate

PostgreSQL COUNT() Function

Learn how to use the PostgreSQL COUNT aggregate function for summary queries and reports.

COUNT(*) or COUNT(column)
PostgreSQL Aggregate

PostgreSQL SUM() Function

Learn how to use the PostgreSQL SUM aggregate function for summary queries and reports.

SUM(expression)
PostgreSQL Aggregate

PostgreSQL AVG() Function

Learn how to use the PostgreSQL AVG aggregate function for summary queries and reports.

AVG(expression)
PostgreSQL Aggregate

PostgreSQL MIN() Function

Learn how to use the PostgreSQL MIN aggregate function for summary queries and reports.

MIN(expression)
PostgreSQL Aggregate

PostgreSQL MAX() Function

Learn how to use the PostgreSQL MAX aggregate function for summary queries and reports.

MAX(expression)
PostgreSQL Aggregate

PostgreSQL ARRAY_AGG() Function

Learn how to use the PostgreSQL ARRAY_AGG aggregate function for summary queries and reports.

ARRAY_AGG(expression)
PostgreSQL Aggregate

PostgreSQL BOOL_AND() Function

Learn how to use the PostgreSQL BOOL_AND aggregate function for summary queries and reports.

BOOL_AND(expression)
PostgreSQL Aggregate

PostgreSQL BOOL_OR() Function

Learn how to use the PostgreSQL BOOL_OR aggregate function for summary queries and reports.

BOOL_OR(expression)
PostgreSQL Aggregate

PostgreSQL JSON_AGG() Function

Learn how to use the PostgreSQL JSON_AGG aggregate function for summary queries and reports.

JSON_AGG(expression)
PostgreSQL Numeric

PostgreSQL ROUND() Function

Learn how to use the PostgreSQL ROUND numeric function for calculations in SQL.

ROUND(number, decimal_places)
PostgreSQL Numeric

PostgreSQL CEIL() Function

Learn how to use the PostgreSQL CEIL numeric function for calculations in SQL.

CEIL(number)
PostgreSQL Numeric

PostgreSQL FLOOR() Function

Learn how to use the PostgreSQL FLOOR numeric function for calculations in SQL.

FLOOR(number)
PostgreSQL Numeric

PostgreSQL ABS() Function

Learn how to use the PostgreSQL ABS numeric function for calculations in SQL.

ABS(number)
PostgreSQL Numeric

PostgreSQL MOD() Function

Learn how to use the PostgreSQL MOD numeric function for calculations in SQL.

MOD(number, divisor)
PostgreSQL Numeric

PostgreSQL POWER() Function

Learn how to use the PostgreSQL POWER numeric function for calculations in SQL.

POWER(number, exponent)
PostgreSQL Numeric

PostgreSQL SQRT() Function

Learn how to use the PostgreSQL SQRT numeric function for calculations in SQL.

SQRT(number)
PostgreSQL Numeric

PostgreSQL RANDOM() Function

Learn how to use the PostgreSQL RANDOM numeric function for calculations in SQL.

RANDOM(number)
PostgreSQL Numeric

PostgreSQL GREATEST() Function

Learn how to use the PostgreSQL GREATEST numeric function for calculations in SQL.

GREATEST(number)
PostgreSQL Numeric

PostgreSQL LEAST() Function

Learn how to use the PostgreSQL LEAST numeric function for calculations in SQL.

LEAST(number)
PostgreSQL JSON

PostgreSQL JSONB_SET() Function

Learn how to use the PostgreSQL JSONB_SET JSON function to read or modify JSON values in SQL.

JSONB_SET(json_value, path)
PostgreSQL JSON

PostgreSQL JSON_BUILD_OBJECT() Function

Learn how to use the PostgreSQL JSON_BUILD_OBJECT JSON function to read or modify JSON values in SQL.

JSON_BUILD_OBJECT(json_value, path)
PostgreSQL JSON

PostgreSQL TO_JSON() Function

Learn how to use the PostgreSQL TO_JSON JSON function to read or modify JSON values in SQL.

TO_JSON(json_value, path)
PostgreSQL JSON

PostgreSQL ROW_TO_JSON() Function

Learn how to use the PostgreSQL ROW_TO_JSON JSON function to read or modify JSON values in SQL.

ROW_TO_JSON(json_value, path)
PostgreSQL Window

PostgreSQL ROW_NUMBER() Function

Learn how to use the PostgreSQL ROW_NUMBER window function for ranking, offsets, and analytical queries.

ROW_NUMBER() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL RANK() Function

Learn how to use the PostgreSQL RANK window function for ranking, offsets, and analytical queries.

RANK() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL DENSE_RANK() Function

Learn how to use the PostgreSQL DENSE_RANK window function for ranking, offsets, and analytical queries.

DENSE_RANK() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL LAG() Function

Learn how to use the PostgreSQL LAG window function for ranking, offsets, and analytical queries.

LAG(column, offset) OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL LEAD() Function

Learn how to use the PostgreSQL LEAD window function for ranking, offsets, and analytical queries.

LEAD(column, offset) OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL FIRST_VALUE() Function

Learn how to use the PostgreSQL FIRST_VALUE window function for ranking, offsets, and analytical queries.

FIRST_VALUE() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL LAST_VALUE() Function

Learn how to use the PostgreSQL LAST_VALUE window function for ranking, offsets, and analytical queries.

LAST_VALUE() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL NTILE() Function

Learn how to use the PostgreSQL NTILE window function for ranking, offsets, and analytical queries.

NTILE() OVER (ORDER BY column)
PostgreSQL Window

PostgreSQL PERCENT_RANK() Function

Learn how to use the PostgreSQL PERCENT_RANK window function for ranking, offsets, and analytical queries.

PERCENT_RANK() OVER (ORDER BY column)
SQL Server String

SQL Server CONCAT() Function

Learn how to use the SQL Server CONCAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CONCAT(value1, value2, ...)
SQL Server String

SQL Server STRING_AGG() Function

Learn how to use the SQL Server STRING_AGG function for text and string manipulation with syntax, examples, and related SQL dialect notes.

STRING_AGG(expression, delimiter)
SQL Server String

SQL Server SUBSTRING() Function

Learn how to use the SQL Server SUBSTRING function for text and string manipulation with syntax, examples, and related SQL dialect notes.

SUBSTRING(text, start, length)
SQL Server String

SQL Server LEFT() Function

Learn how to use the SQL Server LEFT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LEFT(text, number_of_characters)
SQL Server String

SQL Server RIGHT() Function

Learn how to use the SQL Server RIGHT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RIGHT(text, number_of_characters)
SQL Server String

SQL Server REPLACE() Function

Learn how to use the SQL Server REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REPLACE(text, search, replacement)
SQL Server String

SQL Server TRIM() Function

Learn how to use the SQL Server TRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TRIM(text)
SQL Server String

SQL Server LTRIM() Function

Learn how to use the SQL Server LTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LTRIM(text)
SQL Server String

SQL Server RTRIM() Function

Learn how to use the SQL Server RTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RTRIM(text)
SQL Server String

SQL Server UPPER() Function

Learn how to use the SQL Server UPPER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

UPPER(text)
SQL Server String

SQL Server LOWER() Function

Learn how to use the SQL Server LOWER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LOWER(text)
SQL Server String

SQL Server LEN() Function

Learn how to use the SQL Server LEN function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LEN(text)
SQL Server String

SQL Server CHARINDEX() Function

Learn how to use the SQL Server CHARINDEX function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CHARINDEX(search_text, text)
SQL Server String

SQL Server PATINDEX() Function

Learn how to use the SQL Server PATINDEX function for text and string manipulation with syntax, examples, and related SQL dialect notes.

PATINDEX(text)
SQL Server String

SQL Server FORMAT() Function

Learn how to use the SQL Server FORMAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

FORMAT(text)
SQL Server String

SQL Server STUFF() Function

Learn how to use the SQL Server STUFF function for text and string manipulation with syntax, examples, and related SQL dialect notes.

STUFF(text)
SQL Server String

SQL Server STRING_SPLIT() Function

Learn how to use the SQL Server STRING_SPLIT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

STRING_SPLIT(text)
SQL Server String

SQL Server TRANSLATE() Function

Learn how to use the SQL Server TRANSLATE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TRANSLATE(text)
SQL Server Date

SQL Server GETDATE() Function

Learn how to use the SQL Server GETDATE date function with practical examples and cross-dialect alternatives.

GETDATE()
SQL Server Date

SQL Server SYSDATETIME() Function

Learn how to use the SQL Server SYSDATETIME date function with practical examples and cross-dialect alternatives.

SYSDATETIME()
SQL Server Date

SQL Server CURRENT_TIMESTAMP() Function

Learn how to use the SQL Server CURRENT_TIMESTAMP date function with practical examples and cross-dialect alternatives.

CURRENT_TIMESTAMP()
SQL Server Date

SQL Server DATEADD() Function

Learn how to use the SQL Server DATEADD date function with practical examples and cross-dialect alternatives.

DATEADD(datepart, number, date)
SQL Server Date

SQL Server DATEDIFF() Function

Learn how to use the SQL Server DATEDIFF date function with practical examples and cross-dialect alternatives.

DATEDIFF(date1, date2)
SQL Server Date

SQL Server DATENAME() Function

Learn how to use the SQL Server DATENAME date function with practical examples and cross-dialect alternatives.

DATENAME(part FROM date)
SQL Server Date

SQL Server DATEPART() Function

Learn how to use the SQL Server DATEPART date function with practical examples and cross-dialect alternatives.

DATEPART(part FROM date)
SQL Server Date

SQL Server EOMONTH() Function

Learn how to use the SQL Server EOMONTH date function with practical examples and cross-dialect alternatives.

EOMONTH()
SQL Server Date

SQL Server ISDATE() Function

Learn how to use the SQL Server ISDATE date function with practical examples and cross-dialect alternatives.

ISDATE()
SQL Server NULL

SQL Server ISNULL() Function

Learn how to use the SQL Server ISNULL function to handle NULL values and default replacements.

ISNULL(value, replacement)
SQL Server NULL

SQL Server COALESCE() Function

Learn how to use the SQL Server COALESCE function to handle NULL values and default replacements.

COALESCE(value1, value2, ...)
SQL Server NULL

SQL Server NULLIF() Function

Learn how to use the SQL Server NULLIF function to handle NULL values and default replacements.

NULLIF(value1, value2)
SQL Server Aggregate

SQL Server COUNT() Function

Learn how to use the SQL Server COUNT aggregate function for summary queries and reports.

COUNT(*) or COUNT(column)
SQL Server Aggregate

SQL Server SUM() Function

Learn how to use the SQL Server SUM aggregate function for summary queries and reports.

SUM(expression)
SQL Server Aggregate

SQL Server AVG() Function

Learn how to use the SQL Server AVG aggregate function for summary queries and reports.

AVG(expression)
SQL Server Aggregate

SQL Server MIN() Function

Learn how to use the SQL Server MIN aggregate function for summary queries and reports.

MIN(expression)
SQL Server Aggregate

SQL Server MAX() Function

Learn how to use the SQL Server MAX aggregate function for summary queries and reports.

MAX(expression)
SQL Server Aggregate

SQL Server CHECKSUM_AGG() Function

Learn how to use the SQL Server CHECKSUM_AGG aggregate function for summary queries and reports.

CHECKSUM_AGG(expression)
SQL Server Aggregate

SQL Server STDEV() Function

Learn how to use the SQL Server STDEV aggregate function for summary queries and reports.

STDEV(expression)
SQL Server Aggregate

SQL Server VAR() Function

Learn how to use the SQL Server VAR aggregate function for summary queries and reports.

VAR(expression)
SQL Server Numeric

SQL Server ROUND() Function

Learn how to use the SQL Server ROUND numeric function for calculations in SQL.

ROUND(number, decimal_places)
SQL Server Numeric

SQL Server CEILING() Function

Learn how to use the SQL Server CEILING numeric function for calculations in SQL.

CEILING(number)
SQL Server Numeric

SQL Server FLOOR() Function

Learn how to use the SQL Server FLOOR numeric function for calculations in SQL.

FLOOR(number)
SQL Server Numeric

SQL Server ABS() Function

Learn how to use the SQL Server ABS numeric function for calculations in SQL.

ABS(number)
SQL Server Numeric

SQL Server POWER() Function

Learn how to use the SQL Server POWER numeric function for calculations in SQL.

POWER(number, exponent)
SQL Server Numeric

SQL Server SQRT() Function

Learn how to use the SQL Server SQRT numeric function for calculations in SQL.

SQRT(number)
SQL Server Numeric

SQL Server RAND() Function

Learn how to use the SQL Server RAND numeric function for calculations in SQL.

RAND(number)
SQL Server Numeric

SQL Server SIGN() Function

Learn how to use the SQL Server SIGN numeric function for calculations in SQL.

SIGN(number)
SQL Server JSON

SQL Server JSON_VALUE() Function

Learn how to use the SQL Server JSON_VALUE JSON function to read or modify JSON values in SQL.

JSON_VALUE(json_value, path)
SQL Server JSON

SQL Server JSON_QUERY() Function

Learn how to use the SQL Server JSON_QUERY JSON function to read or modify JSON values in SQL.

JSON_QUERY(json_value, path)
SQL Server JSON

SQL Server JSON_MODIFY() Function

Learn how to use the SQL Server JSON_MODIFY JSON function to read or modify JSON values in SQL.

JSON_MODIFY(json_value, path)
SQL Server JSON

SQL Server ISJSON() Function

Learn how to use the SQL Server ISJSON JSON function to read or modify JSON values in SQL.

ISJSON(json_value, path)
SQL Server JSON

SQL Server OPENJSON() Function

Learn how to use the SQL Server OPENJSON JSON function to read or modify JSON values in SQL.

OPENJSON(json_value, path)
SQL Server Window

SQL Server ROW_NUMBER() Function

Learn how to use the SQL Server ROW_NUMBER window function for ranking, offsets, and analytical queries.

ROW_NUMBER() OVER (ORDER BY column)
SQL Server Window

SQL Server RANK() Function

Learn how to use the SQL Server RANK window function for ranking, offsets, and analytical queries.

RANK() OVER (ORDER BY column)
SQL Server Window

SQL Server DENSE_RANK() Function

Learn how to use the SQL Server DENSE_RANK window function for ranking, offsets, and analytical queries.

DENSE_RANK() OVER (ORDER BY column)
SQL Server Window

SQL Server LAG() Function

Learn how to use the SQL Server LAG window function for ranking, offsets, and analytical queries.

LAG(column, offset) OVER (ORDER BY column)
SQL Server Window

SQL Server LEAD() Function

Learn how to use the SQL Server LEAD window function for ranking, offsets, and analytical queries.

LEAD(column, offset) OVER (ORDER BY column)
SQL Server Window

SQL Server FIRST_VALUE() Function

Learn how to use the SQL Server FIRST_VALUE window function for ranking, offsets, and analytical queries.

FIRST_VALUE() OVER (ORDER BY column)
SQL Server Window

SQL Server LAST_VALUE() Function

Learn how to use the SQL Server LAST_VALUE window function for ranking, offsets, and analytical queries.

LAST_VALUE() OVER (ORDER BY column)
SQL Server Window

SQL Server NTILE() Function

Learn how to use the SQL Server NTILE window function for ranking, offsets, and analytical queries.

NTILE() OVER (ORDER BY column)
SQL Server Window

SQL Server PERCENT_RANK() Function

Learn how to use the SQL Server PERCENT_RANK window function for ranking, offsets, and analytical queries.

PERCENT_RANK() OVER (ORDER BY column)
Oracle String

Oracle CONCAT() Function

Learn how to use the Oracle CONCAT function for text and string manipulation with syntax, examples, and related SQL dialect notes.

CONCAT(value1, value2, ...)
Oracle String

Oracle LISTAGG() Function

Learn how to use the Oracle LISTAGG function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LISTAGG(expression, delimiter)
Oracle String

Oracle SUBSTR() Function

Learn how to use the Oracle SUBSTR function for text and string manipulation with syntax, examples, and related SQL dialect notes.

SUBSTR(text, start, length)
Oracle String

Oracle INSTR() Function

Learn how to use the Oracle INSTR function for text and string manipulation with syntax, examples, and related SQL dialect notes.

INSTR(search_text, text)
Oracle String

Oracle REPLACE() Function

Learn how to use the Oracle REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REPLACE(text, search, replacement)
Oracle String

Oracle TRIM() Function

Learn how to use the Oracle TRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

TRIM(text)
Oracle String

Oracle LTRIM() Function

Learn how to use the Oracle LTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LTRIM(text)
Oracle String

Oracle RTRIM() Function

Learn how to use the Oracle RTRIM function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RTRIM(text)
Oracle String

Oracle UPPER() Function

Learn how to use the Oracle UPPER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

UPPER(text)
Oracle String

Oracle LOWER() Function

Learn how to use the Oracle LOWER function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LOWER(text)
Oracle String

Oracle LENGTH() Function

Learn how to use the Oracle LENGTH function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LENGTH(text)
Oracle String

Oracle LPAD() Function

Learn how to use the Oracle LPAD function for text and string manipulation with syntax, examples, and related SQL dialect notes.

LPAD(text)
Oracle String

Oracle RPAD() Function

Learn how to use the Oracle RPAD function for text and string manipulation with syntax, examples, and related SQL dialect notes.

RPAD(text)
Oracle String

Oracle REGEXP_REPLACE() Function

Learn how to use the Oracle REGEXP_REPLACE function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REGEXP_REPLACE(text, search, replacement)
Oracle String

Oracle REGEXP_SUBSTR() Function

Learn how to use the Oracle REGEXP_SUBSTR function for text and string manipulation with syntax, examples, and related SQL dialect notes.

REGEXP_SUBSTR(text)
Oracle Date

Oracle SYSDATE() Function

Learn how to use the Oracle SYSDATE date function with practical examples and cross-dialect alternatives.

SYSDATE()
Oracle Date

Oracle SYSTIMESTAMP() Function

Learn how to use the Oracle SYSTIMESTAMP date function with practical examples and cross-dialect alternatives.

SYSTIMESTAMP()
Oracle Date

Oracle CURRENT_DATE() Function

Learn how to use the Oracle CURRENT_DATE date function with practical examples and cross-dialect alternatives.

CURRENT_DATE()
Oracle Date

Oracle ADD_MONTHS() Function

Learn how to use the Oracle ADD_MONTHS date function with practical examples and cross-dialect alternatives.

ADD_MONTHS()
Oracle Date

Oracle MONTHS_BETWEEN() Function

Learn how to use the Oracle MONTHS_BETWEEN date function with practical examples and cross-dialect alternatives.

MONTHS_BETWEEN(date1, date2)
Oracle Date

Oracle LAST_DAY() Function

Learn how to use the Oracle LAST_DAY date function with practical examples and cross-dialect alternatives.

LAST_DAY()
Oracle Date

Oracle NEXT_DAY() Function

Learn how to use the Oracle NEXT_DAY date function with practical examples and cross-dialect alternatives.

NEXT_DAY()
Oracle Date

Oracle EXTRACT() Function

Learn how to use the Oracle EXTRACT date function with practical examples and cross-dialect alternatives.

EXTRACT(part FROM date)
Oracle Date

Oracle TO_DATE() Function

Learn how to use the Oracle TO_DATE date function with practical examples and cross-dialect alternatives.

TO_DATE()
Oracle Date

Oracle TO_CHAR() Function

Learn how to use the Oracle TO_CHAR date function with practical examples and cross-dialect alternatives.

TO_CHAR(date, format)
Oracle Date

Oracle TRUNC() Function

Learn how to use the Oracle TRUNC date function with practical examples and cross-dialect alternatives.

TRUNC(part, date)
Oracle NULL

Oracle NVL() Function

Learn how to use the Oracle NVL function to handle NULL values and default replacements.

NVL(value, replacement)
Oracle NULL

Oracle NVL2() Function

Learn how to use the Oracle NVL2 function to handle NULL values and default replacements.

NVL2(value, replacement)
Oracle NULL

Oracle COALESCE() Function

Learn how to use the Oracle COALESCE function to handle NULL values and default replacements.

COALESCE(value1, value2, ...)
Oracle NULL

Oracle NULLIF() Function

Learn how to use the Oracle NULLIF function to handle NULL values and default replacements.

NULLIF(value1, value2)
Oracle NULL

Oracle DECODE() Function

Learn how to use the Oracle DECODE function to handle NULL values and default replacements.

DECODE(value, replacement)
Oracle Aggregate

Oracle COUNT() Function

Learn how to use the Oracle COUNT aggregate function for summary queries and reports.

COUNT(*) or COUNT(column)
Oracle Aggregate

Oracle SUM() Function

Learn how to use the Oracle SUM aggregate function for summary queries and reports.

SUM(expression)
Oracle Aggregate

Oracle AVG() Function

Learn how to use the Oracle AVG aggregate function for summary queries and reports.

AVG(expression)
Oracle Aggregate

Oracle MIN() Function

Learn how to use the Oracle MIN aggregate function for summary queries and reports.

MIN(expression)
Oracle Aggregate

Oracle MAX() Function

Learn how to use the Oracle MAX aggregate function for summary queries and reports.

MAX(expression)
Oracle Aggregate

Oracle STDDEV() Function

Learn how to use the Oracle STDDEV aggregate function for summary queries and reports.

STDDEV(expression)
Oracle Aggregate

Oracle VARIANCE() Function

Learn how to use the Oracle VARIANCE aggregate function for summary queries and reports.

VARIANCE(expression)
Oracle Numeric

Oracle ROUND() Function

Learn how to use the Oracle ROUND numeric function for calculations in SQL.

ROUND(number, decimal_places)
Oracle Numeric

Oracle CEIL() Function

Learn how to use the Oracle CEIL numeric function for calculations in SQL.

CEIL(number)
Oracle Numeric

Oracle FLOOR() Function

Learn how to use the Oracle FLOOR numeric function for calculations in SQL.

FLOOR(number)
Oracle Numeric

Oracle ABS() Function

Learn how to use the Oracle ABS numeric function for calculations in SQL.

ABS(number)
Oracle Numeric

Oracle MOD() Function

Learn how to use the Oracle MOD numeric function for calculations in SQL.

MOD(number, divisor)
Oracle Numeric

Oracle POWER() Function

Learn how to use the Oracle POWER numeric function for calculations in SQL.

POWER(number, exponent)
Oracle Numeric

Oracle SQRT() Function

Learn how to use the Oracle SQRT numeric function for calculations in SQL.

SQRT(number)
Oracle Numeric

Oracle GREATEST() Function

Learn how to use the Oracle GREATEST numeric function for calculations in SQL.

GREATEST(number)
Oracle Numeric

Oracle LEAST() Function

Learn how to use the Oracle LEAST numeric function for calculations in SQL.

LEAST(number)
Oracle JSON

Oracle JSON_VALUE() Function

Learn how to use the Oracle JSON_VALUE JSON function to read or modify JSON values in SQL.

JSON_VALUE(json_value, path)
Oracle JSON

Oracle JSON_QUERY() Function

Learn how to use the Oracle JSON_QUERY JSON function to read or modify JSON values in SQL.

JSON_QUERY(json_value, path)
Oracle JSON

Oracle JSON_OBJECT() Function

Learn how to use the Oracle JSON_OBJECT JSON function to read or modify JSON values in SQL.

JSON_OBJECT(json_value, path)
Oracle JSON

Oracle JSON_ARRAY() Function

Learn how to use the Oracle JSON_ARRAY JSON function to read or modify JSON values in SQL.

JSON_ARRAY(json_value, path)
Oracle JSON

Oracle JSON_EXISTS() Function

Learn how to use the Oracle JSON_EXISTS JSON function to read or modify JSON values in SQL.

JSON_EXISTS(json_value, path)
Oracle Window

Oracle ROW_NUMBER() Function

Learn how to use the Oracle ROW_NUMBER window function for ranking, offsets, and analytical queries.

ROW_NUMBER() OVER (ORDER BY column)
Oracle Window

Oracle RANK() Function

Learn how to use the Oracle RANK window function for ranking, offsets, and analytical queries.

RANK() OVER (ORDER BY column)
Oracle Window

Oracle DENSE_RANK() Function

Learn how to use the Oracle DENSE_RANK window function for ranking, offsets, and analytical queries.

DENSE_RANK() OVER (ORDER BY column)
Oracle Window

Oracle LAG() Function

Learn how to use the Oracle LAG window function for ranking, offsets, and analytical queries.

LAG(column, offset) OVER (ORDER BY column)
Oracle Window

Oracle LEAD() Function

Learn how to use the Oracle LEAD window function for ranking, offsets, and analytical queries.

LEAD(column, offset) OVER (ORDER BY column)
Oracle Window

Oracle FIRST_VALUE() Function

Learn how to use the Oracle FIRST_VALUE window function for ranking, offsets, and analytical queries.

FIRST_VALUE() OVER (ORDER BY column)
Oracle Window

Oracle LAST_VALUE() Function

Learn how to use the Oracle LAST_VALUE window function for ranking, offsets, and analytical queries.

LAST_VALUE() OVER (ORDER BY column)
Oracle Window

Oracle NTILE() Function

Learn how to use the Oracle NTILE window function for ranking, offsets, and analytical queries.

NTILE() OVER (ORDER BY column)
Oracle Window

Oracle PERCENT_RANK() Function

Learn how to use the Oracle PERCENT_RANK window function for ranking, offsets, and analytical queries.

PERCENT_RANK() OVER (ORDER BY column)
Back to Top