How You Can Master the Fundamentals of Transact-SQL

A Real World Introduction to Transact-SQL
4.6 (8 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.
104 students enrolled
Instructed by Mike West IT & Software / Other
$19
$20
5% off
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

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

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.

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

Curriculum

Section 1: Introduction
01:17

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

01:07

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

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

05:08

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

07:32

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

03:33

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

Let's install that in the lesson.

07:48

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

02:39

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.

Article

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

These new words will help us get there.

Summary
Article
Quiz
10 questions
Section 2: Writing Transact-SQL Overview
01:01

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

01:14

There are two broad categories of Transact-SQL.

DDL and DML.

Let's define them in this lecture.

02:23

The USE statement sets our database context.

Let's see it in action in this lesson.

03:05

The core object in SQL Server is the table.

Let's learn about it in this lecture.

07:31

Let's put some data into a table.

The INSERT statement in action.

Article

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

There were some "must know" concepts in there.

06:04

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

Let's find out.

05:28

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

03:48

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

02:39

All applications should be using stored procedure.

Let's talk about them in this lesson.

03:05

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

02:20

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

Article

Let's cover some of the new terms.

Article

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

Quiz
10 questions
Section 3: Data Manipulation Language
02:15

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

02:35

Let's talk about these containers.

00:45

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

01:20

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

02:15

Working with dates in fundamental in T-SQL.

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

02:53

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

Let's create one in this lesson.

02:29

We compare items in T-SQL.

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

03:35

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

Let's look at LIKE.

02:29

What are logical comparisons.

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

03:19

The infamous NULL value.

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

03:11

How do we filter our queries.

Let's find out.

01:06

Adding parenthesis to filtering.

Article

Let's wrap up what we've covered.

Quiz
10 questions
Section 4: Functions
03:02

We will use functions often.

What is a function?

Let's find out.

02:32

There are different kinds of functions.

What's a UDF?

01:35

A function that returns a table.

Let's look at this unique function.

01:34

A more complicated function.

02:27

Let's learn how to use aggregate functions.

You'll use these often.

01:50

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

01:56

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

Let's learn what they are.

Article

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

Quiz
7 questions
Section 5: More Advanced Transact-SQL
01:33

Let's use a query within the select statement.

00:45

You'll see this used often.

Let's walk through the having clause.

04:03

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

Article

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

Quiz
8 questions
Section 6: Conclusion
Article

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

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

Personal

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