Skip to content
CBT Nuggets
DemoBook a Demo

Using T-SQL to Manage Data, Query Data, and Program Databases

This intermediate T-SQL training prepares administrators to leverage SQL Server's extended functionality, enhancing control over instances. You'll learn to perform complex operations with T-SQL, including transaction control, exception handling, and querying data across multiple tables. This T-SQL course course also covers temporal and non-relational data and error handling for robust database management.

Updated February 2021

3Skills
28Videos
17Virtual Labs
7hTotal

Who This Course Is For

This Using T-SQL to Manage Data, Query Data, and Program Databases training is considered associate-level Microsoft training, which means it was designed for systems administrators with at least a year of experience with T-SQL and experienced database administrators looking to validate their Microsoft skills.

Skills Your Team Will Gain

  • Communicating with an instance of SQL Server via Transact-SQL statements
  • Recognizing and using what sets some of T-SQL's most unique commands apart from SQL's
  • Performing transaction control and exception handling with T-SQL
  • Querying multiple tables by using joins
  • Querying temporal data and non-relational data
  • Implementing error handling and transactions

Course Curriculum

One skill is free to watch — no signup needed. The other 2 premium skills unlock for your whole team with a CBT Nuggets plan.

Free skill preview

Manage Data with T-SQL

Garth SchulteDuration: 2h 57m24 videos6 virtual labs

Watch this complete skill free — the same trainer, videos, and labs your team gets with a plan.

Watch free skill
Want to browse the locked skills?
with no purchase required. Already have an account?

An account gets you the full catalog to browse, pre-assessments, quiz questions on free skills, and IT Trainerbot, with every answer citing its source video.

Put this course to work for your team

Every subscription includes this course with the full library, virtual labs, and practice exams — or talk it through with sales.

For IT leaders

What IT leaders need to know before assigning this course

When the T-SQL in production scripts and stored procedures is written inconsistently, teams pay for it in failed data changes, slow queries, and errors that surface to users instead of being handled. This intermediate course gives an IT Director a way to standardize how database administrators and systems administrators write, query, and program against SQL Server.

Role fit: Built for IT Practitioners with at least a year of T-SQL experience and experienced DBAs looking to validate their Microsoft skills. It is not an introduction to SQL. Assign it to staff who already touch SQL Server Management Studio regularly.

Time investment: About 7.2 hours per learner across three skills: Manage Data, Query Data, and Program Databases. Teams can work through it one skill at a time over a few weeks.

Risk and reliability: The Program Databases skill covers transactions and TRY/CATCH error handling. Learners practice using error handling to control whether a transaction commits or rolls back, logging errors, and returning meaningful messages to calling applications. These habits reduce the risk of partial data changes.

Change management: The course also covers SARGable queries, when to choose joins over subqueries, APPLY, window functions, and querying XML and JSON data. Team Leads should expect to update internal script conventions as the team adopts these patterns.

CBT Nuggets delivery: Hands-on Virtual Labs use AdventureWorks and WideWorldImporters so staff practice INSERT, UPDATE, and DELETE without touching production. Group the course into a Playlist and track completion via Team Reporting.

Team Impact

How this training helps your team succeed

IT teams complete this training to write T-SQL that holds up in production, not just in a query window. Each skill is taught in hands-on Virtual Lab sessions against sample databases such as AdventureWorks, so practitioners build working habits before they touch live data.

Here is how that shows up on the job:

  • Safer data changes. Your team practices writing INSERT, UPDATE, and DELETE statements to modify data, with attention to the syntax and habits that help prevent avoidable mistakes. That means fewer risky changes and fewer escalations when database staff are working with live data.
  • Faster, more predictable queries. Learners write SARGable filters and get the rules right for date equality and date range searches. They also learn when a join is the better choice and when a subquery works better, for example wrapping an aggregate so its result can be compared in the outer WHERE clause. These habits improve stored procedures that users rely on to search text and dates.
  • Reporting without workarounds. Your team uses PIVOT, the OVER clause, and aggregate and ranking window functions to produce rankings and summaries directly in T-SQL.
  • Working with non-relational data. Practitioners query XML and JSON columns, such as custom fields, tags, and stored user preferences, so application-driven data is no longer a black box.

The course also covers SQL Server Management Studio productivity, including context-sensitive help and help topics for built-in functions. These skills help Team Leads onboard new database staff faster.

After completion

Capabilities your team walks away with

Knowledge

  • How INSERT, UPDATE, and DELETE statements modify data, and how to write basic and filtered SELECT queries, including character and date/time searches
  • Popular built-in functions used in everyday queries and what makes a query SARGable
  • When to use joins versus subqueries, including using subqueries to aggregate data and compare the result in an outer query, plus the proper use of the APPLY operator
  • How the OVER clause supports aggregate and ranking window functions, and how pivoting reshapes result sets
  • How SQL Server stores and queries XML and JSON data, such as custom fields and user preferences
  • How transactions work, including how rollback protects data changes when a transaction needs to be reversed

Ability

  • Write queries that modify data safely across tables, using the AdventureWorks and WideWorldImporters sample databases as practice ground
  • Build efficient, SARGable filters for text and date searches inside scripts and stored procedures
  • Query non-relational JSON and XML columns alongside relational data
  • Rank, pivot, and aggregate data with window functions for reporting needs
  • Apply transaction handling concepts to protect data changes and roll back work when needed
  • Work faster in SQL Server Management Studio with context-sensitive help

Readiness check

Confirm prerequisite knowledge before training begins

A short placement assessment on the CBT Nuggets assessments platform measures whether a learner already has the foundation this course assumes. IT leaders use it to put the right people in the right training — and any learner can take it right now to make sure they'll get full value from day one.

  • Questions generated from this course's own video transcripts — what gets measured is exactly what gets taught
  • Instant, per-learner results that show whether the prerequisite foundation is in place
  • Results roll up into team readiness reporting, so training hours go where they change outcomes
Runs on assessments.cbtnuggets.com — sign in with an Adept account so results roll up into team readiness reporting. Need one?
.

If gaps show up, start here

SQL for Data Practitioners

Master the fundamentals of Structured Query Language (SQL) to turn raw data into actionable insights. In this SQL training for Data Practitioners, you will learn to navigate relational databases, write efficient queries to extract specific datasets, ...

~9h

This course is included with every plan

Unlock this one course, or get one learner — or your whole team — access to all 295 courses, virtual labs, and practice exams.

Course Unlock

Just need this course?

$75one time

No subscription

One year of access to Using T-SQL to Manage Data, Query Data, and Program Databases Online Training

  • Every skill in this course
  • Its virtual labs
  • Ask IT Trainerbot about it — free

CBT Nuggets Individual

Includes IT Trainerbot Plus

$49per month

Billed annually

Every course, for one learner

See Individual pricing
For IT teams

CBT Nuggets Teams

IT Trainerbot for every seat

$59per seat / mo

Billed annually

From 1 learner seat · unlimited admin seats

Checking your access…

Frequently Asked Questions

What will you learn in this T-SQL training?

You'll learn how to use Transact-SQL to reach into databases and pull out the data you need from them, and then use it. This T-SQL course focuses on transaction control and exception handling with T-SQL along with the basics of storing, accessing and manipulating relational data with T-SQL.

Why should you take this T-SQL data management course?

You should take this T-SQL course if you work with Microsoft databases in any way. Because SQL runs most databases it's one of the most common languages in the world. T-SQL is Microsoft's extension to it, and learning it makes Microsoft databases even more powerful and versatile.

Is this T-SQL course associated with any certifications?

No, this T-SQL training isn't designed to prepare you for any specific certification. Microsoft retired basically all their certifications that related specifically to Transact-SQL and SQL Server in January 2021. Nevertheless, administrator certifications that call for T-SQL knowledge will be much easier after this course.

What certification should you consider after taking this T-SQL course?

Depending on what you do for work, you might consider exploring the Microsoft Certified: Azure Data Engineer Associate after taking this T-SQL course. Its certification exam, DP-203, has a lot more information on it than just T-SQL, but T-SQL plays an important part.

Who would benefit from taking this course in managing and querying data in T-SQL?

Basically anyone who has to interact with databases at all would benefit from this T-SQL course. It doesn't matter whether you're really comfortable around databases or you're brand new to data manipulation, this T-SQL course can help you understand them better and make your job much easier.

Ready to upskill your team?

See how IT leaders fit this course into a team training plan, and what a plan costs for your team's size.