Writing 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.



Selecting From Multiple Tables

How to write T-SQL SELECT statements using multiple tables and what are the differences between using Inner Joins, Left Outer Joins, Right Outer Joins, and Full Outer Joins.


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 Schemas

What is the schema object in SQL Server? How is the schema object used for organization, naming, and security?


Character Data Types

Working with Character Data Types. In this post, we discuss the different character data types like char, nchar, varchar, and nvarchar that are available in SQL Server.