How You Can Master the Fundamentals of Transact-SQL

A Real World Introduction to Transact-SQL
4.6 (9 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
110 students enrolled
Instructed by Mike West IT & Software / Other
Take This Course
  • Lectures 49
  • Length 2 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2016 English

Course Description

SQL Server is a combination of two core items The first is the administration side of the house. Creating databases, managing logins and users, backups,… etc.

The second part of the equation is that of developing code in a language called Structured Query Language.

Microsoft’s flavor of SQL is called Transact-SQL.

Transact was designed primarily to work with relational databases. Transact is the language used to talk to SQL Server.

When we want to create a database a database we use DDL or Data Definition Language. I’m defining an object when I use the statement with the code.

When we want to see data inside a table we use DML or Data Manipulation Language. I’m not creating an object I’m manipulating the data inside that object.

In this course we are going to learn the basics of Transact-SQL or T-SQL.

We will cover the fundamentals of Transact using real world examples. Additionally, we will discuss some of the best practices associated with crafting clean, high performance code.

You’ll learn why stored procedures are so important to well-designed applications and why ad hoc queries aren’t.

The knowledge you gain from the course will not only help you learn to develop but will also give you a great first step to learning how to pinpoint performance issues due to poorly written code.

Thanks for your interest in “Real World Transact-SQL from the Ground Up.”

See you in the course.

What are the requirements?

  • You'll need to download a copy of SQL Server Express. However, don't do it now. We will do this early in the course.
  • You'll need a copy of the SQL Server *play* database. Again, don't worry about that now. We will do that before we really dig into the course.

What am I going to get from this course?

  • At the conclusion of this course you'll have a fundamental understanding of Transact-SQL.
  • You'll learn the 4 components of every query.
  • You'll also learn the difference between DML and DDL and when to use each.

Who is the target audience?

  • This course is for anyone interested in learning the basics of Transact-SQL.
  • This IS an entry level course.
  • Everything you need for the course will be included in the course.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction

Let's find out what's in this course.


I want to make sure you are at the right place.

This lecture will discuss if this course is right for you.


What is the definition of a database?

What is different about what it is versus what it does?

Let's find out in this lecture


We are going to need to install SQL Server. Let's install the express edition of SQL Server.


Once SQL Server is installed we need a test database to learn with.

Let's install that in the lesson.


The main tools developers and DBAs use to manage their database environments.


We need a place to author our transact.

The query editor is the place we do that.

Let's learn about it in this lesson.


We need to be able to speak the language of SQL Server.

These new words will help us get there.

10 questions
Section 2: Writing Transact-SQL Overview

Let's take a very high level look at the anatomy of a query.


There are two broad categories of Transact-SQL.

DDL and DML.

Let's define them in this lecture.


The USE statement sets our database context.

Let's see it in action in this lesson.


The core object in SQL Server is the table.

Let's learn about it in this lecture.


Let's put some data into a table.

The INSERT statement in action.


Let's go over that last lecture in more detail.

There were some "must know" concepts in there.


Relational databases... relate... but how?

Let's find out.


In lecture let's add some comments to our code so other know what we are doing.


Let's define DDL and discuss it in more detail.


All applications should be using stored procedure.

Let's talk about them in this lesson.


Let's see how we use input parameters in our stored procedures.


Let's create a simple stored procedure to INSERT data into a simple table.


Let's cover some of the new terms.


Let's recap what we've covered in this lesson.

10 questions
Section 3: Data Manipulation Language

Let's cover the very basics of the SELECT statement.


Let's talk about these containers.


In this lecture let's give our column names we want.


You can create a column on the fly in SQL Server. Let's see how.


Working with dates in fundamental in T-SQL.

Let's look at one of the functions we use to manipulate dates.


Views are often used to hide the tables structure and prevent direct access.

Let's create one in this lesson.


We compare items in T-SQL.

Let's find out what words do that work for us.


A great clause that's not to relevant due to the performance implications.

Let's look at LIKE.


What are logical comparisons.

Let's learn what they are and how to use them in this lecture.


The infamous NULL value.

Let's talk about what it is and what it isn't.


How do we filter our queries.

Let's find out.


Adding parenthesis to filtering.


Let's wrap up what we've covered.

10 questions
Section 4: Functions

We will use functions often.

What is a function?

Let's find out.


There are different kinds of functions.

What's a UDF?


A function that returns a table.

Let's look at this unique function.


A more complicated function.


Let's learn how to use aggregate functions.

You'll use these often.


I subtle distinction in these two but a really important one.


You'll use conversion functions in almost every stored procedure you craft.

Let's learn what they are.


Let's wrap up what we've covered in this section.

7 questions
Section 5: More Advanced Transact-SQL

Let's use a query within the select statement.


You'll see this used often.

Let's walk through the having clause.


CTE's don't touch tempdb... making them a must as we being to move our code to the cloud.


Let's wrap up what we've covered in this lecture.

8 questions
Section 6: Conclusion

Congratulations and thank you!!

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Mike West, SQL Server Evangelist

I've been a production SQL Server DBA most of my career.

I've worked with databases for over two decades. I've worked for or consulted with over 50 different companies as a full time employee or consultant. Fortune 500 as well as several small to mid-size companies. Some include: Georgia Pacific, SunTrust, Reed Construction Data, Building Systems Design, NetCertainty, The Home Shopping Network, SwingVote, Atlanta Gas and Light and Northrup Grumman.

Experience, education and passion

I learn something almost every day. I work with insanely smart people. I'm a voracious learner of all things SQL Server and I'm passionate about sharing what I've learned. My area of concentration is performance tuning. SQL Server is like an exotic sports car, it will run just fine in anyone's hands but put it in the hands of skilled tuner and it will perform like a race car.


Certifications are like college degrees, they are a great starting points to begin learning. I'm a Microsoft Certified Database Administrator (MCDBA), Microsoft Certified System Engineer (MCSE) and Microsoft Certified Trainer (MCT).


Born in Ohio, raised and educated in Pennsylvania, I currently reside in Atlanta with my wife and two children.

Ready to start learning?
Take This Course