Tag: t-sql

T-SQL Regular Expressions: SUBSTRING, PATINDEX and CHARINDEX

Languages & Coding, T-SQL

In my previous article about T-SQL regular expressions, I have explained the LIKE operator, its...
Read More

Transact-SQL: Working With Strings

Languages & Coding, T-SQL

Microsoft SQL Server has many built-in functions that can be used to format the output and represents it in the desired format. In this...
Read More

How to Update SQL Server Statistics for Big Tables

Database development, Tables

In my previous article, I have briefly covered database statistics, its importance, and why statistics should be updated. Moreover, I have...
Read More

Calculate the median by using Transact SQL

Languages & Coding, T-SQL

The statistical median is the value which separates a dataset into halves – one comprises...
Read More

Auto Create Statistics and Auto Update Statistics

Languages & Coding, SSMS, T-SQL, Tools & technologies

Statistics comprises lightweight objects that are used by SQL Server Query optimizer to determine the optimal way to retrieve data from the...
Read More

Several Ways to Insert Split Delimited Strings in a Column

Database development, Tables

In this article, I will demonstrate several ways to split the delimited string and insert it in into a column of a table in SQL Server. You...
Read More

Learn Basic Data Analysis with SQL Window Functions

Database administration, Work with data

This article is about T-SQL (Transact-SQL) Window functions and their basic use in day-to-day data...
Read More

T-SQL SET Operators Part 2: INTERSECT and EXCEPT

Database development, Statements, T-SQL

In my previous article, I explained the basics of set operators, their types, and prerequisites for their use. I also talked about UNION...
Read More

How to Properly Use the T-SQL IsNumeric Function

Languages & Coding, T-SQL

This article is focused on the T-SQL (Transact-SQL) IsNumeric function and its proper use in day-to-day SQL scripting tasks. We will also...
Read More

T-SQL Datetime Data Type

Database administration, Work with data

Introduction Data types are attributes that specify the kind of data that objects such as columns,...
Read More
Close