T-SQL

Using GROUP BY and HAVING

In this post, we discuss how to use the GROUP BY and HAVING clause in a T-SQL statement and how to use them with aggregate functions.


Table Constraints

Restricting data by using Table Constraints in SQL Server. What are the different table constraints in SQL Server?


Tables and Relationships

Understanding the difference between Parent Tables and Child Tables and the difference between Primary Keys vs Foreign Keys.


What is a Schema?

The term schema could mean several different things. What are the different meanings and how are schemas are used in SQL Server.


Working with Time Precision

Working with Time Precision. How to efficiently support time precision in SQL Server. Data types are important to understand as they can save space on your hard drive, memory, and network.


What is a Function?

What is a SQL Function and how to use a function in a T-SQL statement? We use the GetDate() and LEFT() functions as examples.



DML Triggers

Working with Triggers in SQL Server. How to use triggers for data manipulation statements (DML) like INSERT, UPDATE, and DELETE.