DIFFERENCE Function in SQL Server

DIFFERENCE Function in SQL Server Same Phonetic Sound

In this SQL Server tutorial, you will learn about the DIFFERENCE function in SQL Server. The DIFFERENCE() function helps in data matching based on the sound of the data. First, you will be introduced to the DIFFERENCE() function and how it finds the difference between strings. Then, the syntax of the DIFFERENCE() function. After that, … Read more

How to use COUNT Function in SQL Server

COUNT Function in SQL Server with ALL Option on EmployeeID column

In this SQL Server tutorial, you will learn how to use the COUNT function in SQL Server to count the number of rows in a table. The COUNT() is a basic function for data analysis or another purpose, depending on the requirement. Here, you will understand the COUNT() function variants with syntax. Also, you will … Read more

STUFF Function in SQL Server

Formatting Date Value using STUFF Function in SQL Server

In this SQL Server tutorial, I will explain how to use the STUFF function in SQL Server, which helps in string manipulations. I will begin to describe the ‘What is STUFF() function?’ with syntax, and with examples, you will understand how it manipulates the string. Then, you will use the STUFF() function to format the … Read more

TRIM Function in SQL Server

TRIM Function in SQL Server Checking Trimmed String Length

In this SQL Server tutorial, you will understand how to manipulate the string using the TRIM function in SQL Server. Here, using the TRIM() function, you can clean the string that contains unnecessary characters or remove spaces from the string. First, you will learn ‘What is the TRIM() function?’ with syntax. For example, I will … Read more

SPACE Function in SQL Server

SPACE Function in SQL Server Combining String with Spaces

In this SQL Server tutorial, I will explain the SPACE function in SQL Server, which helps generate spaces. First, I will describe the SPACE function in SQL Server with an example, then the syntax of this function. After this, several examples to clear your concept of how the SPACE() function works. While doing this example, … Read more

How to use SYSDATETIME Function in SQL Server

SYSDATETIME Function in SQL Server

In this SQL Server tutorial, you will understand how to use the SYSDATETIME function in SQL Server. You will learn the syntax of the SYSDATETIME() function and the difference between other date/time functions and the SYSDATETIME() function. Then, you will understand how to use the SYSDATETIME() function with table columns to retrieve the information based … Read more

How to use AVG Function in SQL Server

AVG Function in SQL Server

In this SQL Server tutorial, you will understand how to use the AVG function in SQL Server to find the average value of the column data. Here, you will learn about the syntax of the AVG() function and then understand ‘What does average value mean?’. After that, you will use the AVG() function on table … Read more

SQL Server REVERSE()

SQL Server REVERSE Literal String

In this SQL Server tutorial, you will learn about the SQL Server REVERSE() function to change the order of the string value. This function is very helpful in the data manipulation of strings, such as creating unique codes, data formatting, etc. You will understand the syntax of the REVERSE() function with its definition, and then … Read more

SUBSTRING Function in SQL Server

SUBSTRING Function in SQL Server

In this SQL Server tutorial, you will learn about the SUBSTRING function in SQL Server. You can use this function to manipulate the string by extracting a specific part. First, you will be introduced to the definition of the SUBSTRING() function and its syntax. Then, with a simple example, you will understand how it works. … Read more

DATEDIFF Function in SQL Server

DATEDIFF Function in SQL Server Finding Year Difference Between Two Dates

In this SQL Server tutorial, you will learn about the DATEDIFF function in SQL Server. This function helps find the difference between two dates. You will understand the ‘What is DATEDIFF() function with syntax’, then see how the DATEDIFF() function works with an example. Ultimately, you will use the DATEDIFF() function on the tables to … Read more