The SQL SUBSTRING function is used to extract a portion of a string value from a larger string. The syntax for the function is as follows: SUBSTRING(string, start, length) Where string is the input string value, start is the starting position from which the substring is to be extracted, and length is the number of…(Continue Reading)
Category: SQL
SQL Tutorial – Learn sql language
CONCAT
SQL CONCAT function is a built-in string function that is used to concatenate two or more strings together. The CONCAT function is available in most of the popular database management systems such as MySQL, Oracle, PostgreSQL, SQL Server, and others. Syntax The syntax of the CONCAT function is straightforward. It takes two or more string…(Continue Reading)
SQL String Functions
SQL String functions are a set of built-in functions that are used to manipulate strings or character data in SQL. These functions can be used to extract, transform and manipulate data stored in character data type columns. Here are some of the most commonly used SQL string functions: CONCAT This function is used to concatenate…(Continue Reading)
SQL Aggregate Functions
SQL aggregate functions are used to perform calculations on groups of rows or on an entire table in a database. These functions allow you to calculate the minimum, maximum, average, sum, and count of values in a column or a set of columns in a table. The most commonly used SQL aggregate functions are: SUM…(Continue Reading)
SQL Add Column
In SQL, the ADD COLUMN statement is used to add a new column to an existing table. This statement modifies the structure of the table and can be used to add a new column that contains a specific data type and constraints. Syntax The basic syntax for the ADD COLUMN statement is as follows: ALTER…(Continue Reading)
SUM
The SQL SUM function is a built-in aggregate function in Structured Query Language (SQL) that is used to calculate the sum of a set of values in a specified column of a table. It is a powerful tool that allows you to easily compute the total of numeric data within a dataset. The SUM function…(Continue Reading)
MIN
The SQL MIN function is used to retrieve the smallest value from a column in a database table. It is a built-in function in Structured Query Language (SQL) that can be used in SELECT statements to return the minimum value of a specified column. Syntax The syntax of the MIN function is as follows: SELECT…(Continue Reading)
MAX
The SQL MAX function is a built-in function in SQL (Structured Query Language) that is used to return the maximum value of a given column in a database table. The MAX function can be used with any data type including numeric, date, and string. Syntax The syntax of the MAX function is as follows: SELECT…(Continue Reading)
COUNT
The SQL COUNT function is a widely used aggregate function in SQL (Structured Query Language) that allows you to count the number of rows in a table or the number of records that meet a specific condition in a table. It is used to return the number of rows or non-null values in a column.…(Continue Reading)
AVG
The SQL AVG function is used to calculate the average value of a set of numeric data values in a database table. It is a commonly used SQL aggregate function that can be applied to a single column or multiple columns of a table. Syntax The syntax for the AVG function is as follows: SELECT…(Continue Reading)