0% found this document useful (0 votes)
5 views1 page

SQL Functions Cheatsheet

This cheat sheet provides a concise overview of SQL functions categorized by their purpose, including aggregate, string, numeric, and date/time operations. It lists universal functions as well as specific functions for MySQL, PostgreSQL, SQL Server, and Oracle. Each category includes examples of commonly used functions for easy reference.

Uploaded by

wick82052
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

SQL Functions Cheatsheet

This cheat sheet provides a concise overview of SQL functions categorized by their purpose, including aggregate, string, numeric, and date/time operations. It lists universal functions as well as specific functions for MySQL, PostgreSQL, SQL Server, and Oracle. Each category includes examples of commonly used functions for easy reference.

Uploaded by

wick82052
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SQL Functions Cheat Sheet

Category Function Purpose Vendors

Aggregate COUNT(), SUM(), AVG(), MIN(), MAX() Basic aggregate operations Universal

String LOWER(), UPPER(), LENGTH(), TRIM(), SUBSTRING(),


Basic string manipulation
REPLACE(), CONCAT() Universal

Numeric ROUND(), CEIL(), FLOOR(), ABS(), POWER(),


MathMOD()
operations Universal

Date/Time NOW(), DATE(), YEAR(), MONTH(), DAY(), DATEDIFF(),


Date/time extraction
DATE_ADD(),
and arithmetic
DATE_SUB()
Universal

MySQL GROUP_CONCAT(), IF(), FIELD(), ELT(), UUID(),


MySQL-specific
STR_TO_DATE(),
utilities DATE_FORMAT()
MySQL

PostgreSQL STRING_AGG(), COALESCE(), NULLIF(), TO_CHAR(),


PostgreSQL-specific
AGE(), ILIKE
functions PostgreSQL

SQL Server LEN(), ISNULL(), GETDATE(), FORMAT(), DATEPART(),


SQL Server-specific
NEWID(),functions
STUFF() SQL Server

Oracle NVL(), TO_DATE(), TO_NUMBER(), TO_CHAR(),


Oracle-specific
SYSDATE, functions
ADD_MONTHS(), MONTHS_BETWEEN()
Oracle

You might also like