Writing SQL


Writing T-SQL Videos

In late 2018, I recorded a series of videos for APRESS publishing on how to write T-SQL Queries. (I have linked to the O’Reilly website below.) There are four titles in the series with each title about 45 minutes in length. The first is how to write a T-SQL SELECT…



Columns and Records

In this post, we discuss what columns and records are in a SQL table including an explanation of objects and entities.




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.