To register online click here, or call
Our Registrars will be happy to assist you.

T-SQL Programming Course

Microsoft Transact-SQL Programming

Duration: 5 Days | Price: $2595 *California residents and government employees call for pricing.

Class Dates:

Click here for information regarding remote access training.

Students Will Learn:

  • SQL Statement Syntax
  • Triggers and Stored Procedures
  • Data Normalization
  • Modifying Tables with DML
  • Programming Features of T-SQL
  • Common Table Expressions
  • T-SQL Data Types and Functions

Course Description: This Transact-SQL programming course teaches students relational database fundamentals and SQL programming skills in the Microsoft SQL Server environment. Topics covered include relational database architecture, database design techniques, and simple and complex query skills. The course also covers Microsoft-specific T-SQL programming constructs, predefined data types including XML, creation and use of stored procedures and user-defined functions, use of cursors, updateable views, and transaction locking.

This class is intended for analysts, developers, designers, administrators, and managers new to the SQL programming language. Upon completion, participants will understand SQL functions, join techniques, database objects and constraints, and will be able to write useful stored procedures and views as well as complex queries and updates. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.

Course Prerequisites: General computer knowledge. Familiarity with relational database concepts is helpful but not required.

Follow-up SQL 2012 Courses: Microsoft SQL Server 2012 Administration, SQL Server 2012 Reporting Services, SQL Server 2012 Business Intelligence Application Development (SSRS, SSIS, SSAS), SQL Server 2012 Business Intelligence: Integration Services and Analysis Services

Follow-up SQL 2014 Courses: Microsoft SQL Server 2014 Administration, SQL Server 2014 Reporting Services, SQL Server 2014 Business Intelligence Application Development (SSRS, SSIS, SSAS), SQL Server 2014 Business Intelligence: Integration Services and Analysis Services

Microsoft Transact-SQL Programming Course Overview:

Relational Database Fundamentals
  • Overview of Relational Database Concepts
  • Relational Databases and Relational Database Management Systems
  • SQL, DML and DDL Languages
Manipulating Query Results
  • Using Row Functions
    • Character
    • Numeric
    • Date and Time
    • Data Conversion
  • Using the CASE Function
  • Handling Null Values
  • Aggregating Results Using GROUP BY
  • Restricting Groups with the HAVING Clause
Writing Basic SQL Queries
  • Displaying Table Structures
  • Retrieving Column Data From a Table or View
  • Selecting Unique Values
  • Obtaining a Row Count
  • Filtering Rows Using the WHERE Clause
  • Sorting Results Using ORDER BY
  • Joining Multiple Tables
Advanced Query Techniques
  • Outer Joins
  • Joining a Table to Itself
  • Subqueries
  • Grouping, Filtering and Sorting Query Results
  • Tips for Developing Complex SQL Queries
Manipulating Table Data Using SQL's Data Manipulation Language (DML)
  • Inserting Data into Tables
  • Updating Existing Data
  • Deleting Records
  • Truncating Tables
  • Implementing Data Integrity with Transactions
    • COMMIT
Creating a Database
  • Database Development Methodology Overview
  • Building a Logical Data Model
    • Identifying Entities and Attributes
    • Isolating Keys
    • Relationships Between Entities
    • Creating Entity-Relationship Diagrams
  • Transforming to Physical Design
    • Migrating Entities to Tables
    • Selecting Primary Keys
    • Defining Columns
    • Enforcing Relationships with Foreign Keys
  • Constructing the Database using DDL
    • Creating Tables, Indexes, Constraints and Views
Managing Database Objects
  • Dropping Tables, Indexes and Views
  • Modifying Tables, Indexes and Views
  • Enabling and Disabling Constraints
  • Managing Security
Stored Procedures
  • Definition and Benefits of Use
    • Syntax
    • Variables and Parameters
    • Code Examples
  • Temporary Tables
  • Control of Program Flow
  • Implementation Differences
User-Defined Functions
  • Definition and Benefits of Use
    • Syntax
    • Scalar vs. Table Functions
  • Comparison with Stored Procedures
  • Returning Scalar Values and Tables
  • Modifying and Dropping Functions
  • Definition and Benefits of Use
  • Alternatives (e.g., Constraints)
    • Syntax
    • Trigger Types
  • "Inserted" (or "NEW") and "Deleted" (or "OLD") Tables
  • Event Handling and Trigger Execution
  • Modifying and Dropping Triggers
Complex Queries
  • Using Wilcard Characters with Like
  • Improving SQL Queries with Common Table Expressions (CTE’s)
  • Using the OUTPUT clause
  • Allowing Users to Build SQL Queries Dynamically
T-SQL Code Constructs
  • Exploiting the Programming Features of T-SQL
    • Conditional Constructs
    • Looping Constructs
  • Building Multi-Batch Scripts
  • Invoking System Functions
  • Declaring Variables Inside Scripts
  • Using Variables in Scripts
  • Using Temporary Tables in Scripts
  • Correctly Handling Errors
    • Error Handling
    • Debugging
    • Code Blocks
    • Predefined System Variables
Working with Data Types and Functions
  • Effective Use of Data Types in SQL
    • String
    • Numeric
    • Time/Date
    • Other
  • How to Convert Data Using CAST and CONVERT
  • Creating Conditional Tests with the CASE Function
  • Substitution of Non-null Values with the COALESCE and ISNULL Functions
  • Analyzing Data Points Using Ranking Functions
Transactions and Locking
  • Effective use of Transactions
  • Using Isolation Level
  • Maximizing Concurrency with Correct Use of Locking
    • Shared Locks
    • Exclusive Locks
    • Update Locks
  • Increasing Throughput by Choosing Appropriate Transaction Isolation
  • Preventing Deadlocks
More Stored Procedures
  • Designing a Stored Procedure
    • Input Parameters
    • Output Parameters
    • Default Values
  • Implementing Exception Handling
  • Adding Fault Tolerant Transaction Logic
T-SQL Cursors
  • Overview of Cursors
  • Declaring a Cursor
  • FETCHing Results
  • Testing @@FETCH_STATUS and @@CURSOR_ROWS
  • Updating Records with Cursors
Advanced Views
  • Designing Views
  • Updating through a View
  • Inserting Records through a View
  • Deleting through a View
  • Indexed Views and Performance Applications
Working with XML
  • Benefits of XML
  • Working with XML Documents
  • Working with XML Schemas
  • Storing Data in XML Data Type
  • Working with XML Methods
    • Query
    • Exist
    • Value
    • Modify
    • Nodes
  • Producing XML from SELECT Statements Using the FOR XML Clause
  • Validating XML Using XML Schemas

Student Testimonials

"Instructor was very competent and presented the subject in such an organized and logical manner that something as intimidating as SQL was easily grasped by everyone in classroom. I acquired hands-on skill that will assist in my daily operations."
– N.J., Shefsky and Froelich, LTD

"One of the best programming courses I have taken! The instructor was able to relate concepts to real world experiences and explain difficult concepts in simple terms understood by all."
– D.E., MicroFocus

Multiple Training Locations - Convenience and Cost Control

Regularly Scheduled Courses in more than 100 Cities Across North America and the United Kingdom