Writing SQL

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.


Data Type Conversion

Using the CAST and CONVERT functions to convert data types in SQL Server. What are the differences between the two functions to convert data types in a T-SQL statement?


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.




SQL COALESCE Function

The SQL Coalesce function is used when you want to combine values from a series of columns or expressions when they might contain NULL values.


Working with Batches

Working with Batches in SQL Server, What are the differences between batches and transactions?



Using the INSERT Statement

How to use an INSERT statement to add records to a table in SQL Server. We will begin with just a simple INSERT statement that will add one row into the table.


IDENTITY Columns

How to use IDENTITY columnsĀ in a table. An IDENTITY field is very similar to an auto-number field, where the number will automatically be added as each record is inserted.