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.
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.
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.
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.
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.
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.
Congratulations and thank you!!
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.