CHARINDEX Function in SQL Server

Performing Case-Sensitive Search using CHARINDEX Function in SQL Server

In this SQL Server tutorial, you will learn how to find the position of the substring in the string using the CHARINDEX function in SQL Server. First, you will understand ‘what the CHARINEDX() function’ with its syntax, then the working of the CHARINDEX() function with an example. After that, you will understand how the CHARINDEX() … Read more

WHERE Condition in SQL Server

WHERE Condition in SQL Server with Equality Operator

In this SQL Server tutorial, you will explain the WHERE condition in SQL Server to filter the rows from the table. First, you will understand the ‘What is WHERE condition in SQL Server’ with syntax. Then, you will use different operators like equality, comparison, AND, OR, BETWEEN, and IN to filter the rows based on … Read more

YEAR Function in SQL Server

YEAR Function in SQL Server

In this SQL Server tutorial, you will learn about the YEAR function in SQL Server to retrieve the information from the database based on the year. First, you will understand the syntax of the YEAR() function, then where you can use the YEAR() function. Then, understand how the YEAR() function works with an example. After … Read more

MONTH Function in SQL Server

In this SQL Server tutorial, you will learn about the MONTH function in SQL Server, which helps categorise the information based on the month part of the date. You will understand the syntax of the MONTH() function and just a small example of where you can use this function. Then, apply the MONTH() function to … Read more

How to use VARP Function in SQL Server

VARP Function in SQL Server with DISTINCT Option

In this SQL Server tutorial, you will learn about the VARP Function in SQL Server, where you will learn how to compute the variance of all data using the VARP() function. When your dataset has duplicate values, it can create noise and lead to inaccurate analysis. This function will help you deal with such unwanted items. You will … Read more

How to use VAR Function in SQL Server

VAR Function in SQL Server

In this SQL Server tutorial, you will learn about the VAR Function in SQL Server, where you will learn about the variance and how to compute it using the VAR() function. Also, you will learn how to use this function when your dataset has duplicate values; as you know, duplicate values or unwanted data in your … Read more

STDEV Function in SQL Server

STDEV Function in SQL Server Applying on ProductSales Table

In this SQL Server tutorial, you will learn about the STDEV Function in SQL Server, where you will learn about the standard deviation and how to compute it using the STDEV() function. If you are a data analyst or data science enthusiast, this function is very helpful, as it lets you quickly retrieve the given … Read more

ORDER BY Clause in SQL Server

ORDER BY Clause in SQL Server

In this SQL Server tutorial, you will learn about the ORDER BY clause in SQL Server, where you will sort the data in a specific order. You will understand the general syntax of the ORDER BY clause that you can use anywhere in your SQL Server query. Then, you will order the rows in ascending … Read more

STRING_ESCAPE Function in SQL Server

STRING_ESCAPE Function in SQL Server

In this SQL Server tutorial, I will teach about the STRING_ESCAPE function in SQL Server, where you will understand how to escape the special characters in the string. I will explain the syntax you can use in your query to escape the special or control characters and what kind of parameter this function requires. Then, … Read more

DAY Function in SQL Server

DAY Function in SQL Server with Time Part Only

In this SQL Server tutorial, you will learn how to use the DAY function in SQL Server, where you will work on the day part of the given datetime value. You will learn how to use the DAY() function with only literal date and on the table columns; then, you will learn where to use … Read more