TRY_CONVERT Function in SQL Server

TRY_CONVERT Function in SQL Server Datetime to Date

In this SQL Server tutorial, you will learn about the TRY_CONVERT function in SQL Server that allows you to change the data type of the given value. You will understand the syntax of the TRY_CONVERT() function and use the function to convert the string to integer, integer to string, etc. Also, you will change the … Read more

DATEPART Function in SQL Server

DATEPART function in SQL Server Extracting Year Part of the Date

In this SQL Server tutorial, you will learn the DATEPART function in SQL Server. You will understand the use cases of the DATEPART() function and its syntax. After that, you will learn how to get the specific parts such as day, month, and year from a given date. Then, you will also learn how to … Read more

DATENAME Function of SQL Server

DATENAME Function of SQL Server

In this SQL Server tutorial, you will learn about the DATENAME function in SQL Server. You will understand the syntax of the DATENAME() and extract the different date parts. Also, you will learn how to use the DATENAME() column with the table. DATENAME Function of SQL Server The DATENAME() function in SQL Server retrieves the … 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

SYSUTCDATETIME Function in SQL Server

SYSUTCDATETIME Function in SQL Server

In this SQL Server tutorial, you will learn about the SYSUTCDATETIME function in SQL Server. Then, you will understand where this function can be very helpful and the syntax of the SYSUTCDATETIME() function. Finally, you will learn to use the SYSUTCDATETIME() function with the table. SYSUTCDATETIME Function in SQL Server In SQL Server, many functions … 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 SUM Function in SQL Server

SUM Function in SQL Server

In this SQL Server tutorial, I will explain the SUM function in SQL Server to add all the values of the given set of values. You will be introduced to the syntax of the SUM() function and its definition. Then, you will understand with a simple example how to use the SUM() function with table … Read more

REPLICATE Function of SQL Server

REPLICATE Function of SQL Server

In this SQL Server tutorial, you will learn how to use the REPLICATE function in SQL Server. You will learn where to use the REPLICATE() function with syntax and its definition. Also, you will use the REPLICATE() function with literal string or table columns and present the data visually using this function. REPLICATE Function of … Read more

SYSDATETIMEOFFSET Function in SQL Server

SYSDATETIMEOFFSET Function in SQL Server

In this SQL Server tutorial, you will learn how to use the SYSDATETIMEOFFSET function in SQL Server. You will learn how to use the SYSDATETIMEOFFSET() function with different time zones and also use it with table columns, especially using it as the default value for recording the exact timing of the data insertion. SYSDATETIMEOFFSET Function … Read more

How to use GETDATE Function in SQL Server

GETDATE Function in SQL Server

In this SQL Server tutorial, you will learn about the GETDATE function in SQL Server that helps find the current date and time of the system. You will learn about the syntax of GETDATE() with an example and then how to use the GETDATE() function with a table column, where you will create a table … Read more