
SQL Math Functions
This tutorial provides you with commonly used SQL math functions that allow you to perform business and engineering calculations.
SQL Functions - SQL Tutorial
This section provides you with many built-in SQL functions including aggregate functions, date functions, string functions, control flow functions, window functions, and math functions.
SQL ROUND: Rounds a Number to a Specific Precision - SQL Tutorial
The ROUND function is a math function that rounds a number to a specific length or precision. Here’s the syntax of the ROUND function: ROUND(numeric_expression, precision); Code language: SQL (Structured Query Language) ( sql )
SQL Date Functions - SQL Tutorial
This section introduces the functions that perform date arithmetic operations, including adding and subtracting. DATEADD – Adds an interval to a date/time value. DATEDIFF – Returns the difference between two dates or times.
SQL Aggregate Functions - SQL Tutorial
This tutorial introduces you to the most commonly used SQL aggregate functions including AVG, COUNT, MAX, MIN and SUM functions.
SQL MOD: Returns Modulus of a Number Divided by Another
SQL MOD function examples # The following statement divides the number 33 by 5 that results in 6 as the integer portion of the result and 4 as the remainder. SELECT 33 / 5 AS integer , MOD ( 33 , 5 ) AS remainder ; Code language: SQL (Structured Query Language) ( sql )
SQL TRUNCATE - Truncating Numbers in SQL - SQL Tutorial
Summary: in this tutorial, you will learn how to use the SQL TRUNCATE() function truncate a number to a specified number of decimal places. Overview of SQL TRUNCATE() function # The following shows the syntax of the TRUNCATE() function:
SQL FLOOR Function - Find the largest integer not ... - SQL Tutorial
The FLOOR() function allows you to return the largest integer number less than or equal to the specified number. The syntax of the FLOOR() function is as follows: FLOOR(numeric_expression) Code language: SQL (Structured Query Language) (sql) In this syntax, the FLOOR() function accepts a literal number or a numeric expression that evaluates to ...
SQL ABS Function - SQL Tutorial
In SQL, The ABS function calculates the absolute value of a number or the result of an expression that evaluates to a number. Syntax # ABS (number | expression) Code language: SQL (Structured Query Language) ( sql )
SQL Tutorial: Learn SQL from Scratch for Beginners
This SQL Tutorial helps you master SQL quickly and effectively with clear concepts, hands-on examples, and interactive quizzes. Whether you’re a software developer, database administrator, data analyst, or data scientist, this SQL tutorial will help you unlock the power of SQL for managing and analyzing data.