T-SQL Programming Course

T-SQL Programming

Courses Near You






Microsoft Transact-SQL Programming

Duration: 5 Days | Price: $2495 | Class Dates:

Students Will Learn:
  • SQL Statement Syntax
  • Triggers and Stored Procedures
  • Data Normalization
  • Modifying Tables with DML
  • Programming Features of T-SQL
  • Complex Queries and Advanced Views
  • Data Types and Functions
  • Using the Service Broker

Course Description: This Transact-SQL programming course teaches students relational database fundamentals and SQL programming skills in the Microsoft environment. Topics covered include relational database architecture, database design techniques, and simple and complex query skills. The course covers T-SQL programming constructs, predefined data types including XML, deployment of stored procedures and triggers, CLR integration, use of the Service Broker, use of 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 triggers as well as complex queries and updates. Extensive hands on exercises are used 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 Courses: Microsoft SQL Server 2008 Administration, Microsoft SQL Server 2005 Administration, SQL Server Reporting Services, SQL Server Business Intelligence Application Development

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 Column Functions
  • Handling NULLs
  • Aggregating Results using GROUP BY
  • Restricting Groups with the HAVING Clause
Writing Basic SQL Queries
  • Displaying Table Structures
  • Column Datatypes
  • SELECTing Column Data FROM a Table
  • SELECT DISTINCT Values
  • COUNTing Rows
  • Restricting Rows using the WHERE Clause
    • Using Operators
    • Mathematical
    • Logical
    • Comparison
    • Concatenation
    • Set Operators
  • Sorting Results Using ORDER BY
  • Joining Multiple Tables
  • Using Column and Table Aliases
  • Pseudo Columns
Advanced Query Techniques
  • Outer Joins
  • Joining a Table to Itself
  • Subqueries
  • Hierarchical Queries
  • Using the Data Dictionary
  • Tips for Developing Complex SQL Queries
Manipulating Table Data Using SQL's Data Manipulation Language (DML)
  • INSERT into Tables
  • UPDATE Table Data
  • DELETE from Tables
  • TRUNCATE Tables
  • Controlling Transactions
    • COMMIT
    • ROLLBACK
    • SAVEPOINT

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
    • Using Table and Column COMMENTs
    • Using SYNONYMs
  • Facilitating Development Using CASE Tools
Managing Database Objects
  • Dropping Tables, Indexes and Views
  • ALTERing Tables, Indexes and Views
  • Enabling and Disabling Constraints
  • Managing Security
Performance Tuning
  • Writing Efficient SQL
  • EXPLAIN Query Analysis
  • Indexing for Performance
  • Index-Organized Tables
  • Clustering
Stored Procedures
  • Definition and Benefits of Use
  • Perils and Pitfalls
  • CREATE PROCEDURE
    • Syntax
    • Variables and Parameters
    • Code Examples
  • Temporary Tables
  • Control of Program Flow
  • ALTER and DROP PROCEDURE
  • Implementation Differences
User-Defined Functions
  • Definition and Benefits of Use
  • CREATE FUNCTION
    • Syntax
    • RETURN Clause and the RETURNS Statement
    • Scalar vs. Table Functions
  • Comparison with Stored Procedures
  • Returning Scalar Values and Tables
  • ALTER and DROP FUNCTION
Triggers
  • Definition and Benefits of Use
  • Alternatives (e.g., Constraints)
  • CREATE TRIGGER
    • Syntax
    • Trigger Types
  • "Inserted" (or "NEW") and "Deleted" (or "OLD") Tables
  • Event Handling and Trigger Execution
  • Nested and Recursive Triggers
  • ALTER and DROP TRIGGER
Complex Queries
  • Improving SQL Queries with Common Table Expressions (CTE’s)
  • Building User Reports with Multi-Table Joins
  • Writing English-Like Queries
  • Allowing Users to Build SQL Queries Dynamically
  • Extracting Data for Business Intelligence(BI) Systems
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
  • Using the SQLCMD Utility
Working with Data Types and Functions
  • Effective use of Data Types in SQL
    • String
    • Numeric
    • Time/Date
    • Other
  • How to Convert Data
  • Converting Expressions Using the CAST Function
  • Controlling Formatting with the CONVERT Function
  • Creating Conditional Tests with the CASE Function
  • Substitution of Non-null Values with the COALESCE Function
  • Replacing Nulls with the ISNULL Function
  • Analyzing Data Points Using Ranking Functions
Transactions and Locking
  • Effective use of Transactions
  • Using Isolation Level
  • Implementing Data Integrity with Transactions
    • COMMIT
    • ROLLBACK
    • SAVEPOINT
  • Maximizing Concurrency with Correct use of Locking
    • Read Locks
    • Write Locks
    • Shared 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
  • Designing Functions
  • Building Triggers
    • DDL Triggers
    • INSTEAD OF Triggers
    • AFTER Triggers
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
Common Language Runtime (CLR) Integration
  • Overview of the CLR
  • Implications of Integrating SQL and the CLR
  • When to use CLR Integration and when not to
  • Enabling CLR integration
  • Implementing Managed Code in the Database
  • How to Code CLR Stored Procedures
  • How to Code CLR Functions
  • How to Code CLR Triggers
  • MARS (Multiple Active Result Sets)
Service Broker
  • Understanding Service Broker
  • Examining the Service Broker Architecture
  • Building a Distributed Application with Service Broker
  • Creating a Conversation
  • Coordination of Message Ordering
  • Creating Message Types, Contracts, Queues
Security in SQL Server
  • Overview of SQL Server Security Architecture
  • Security Implementation Changes in SQL Server 2005 and 2008
  • Organizing Tables with Schemas
  • Granting Permissions
  • Grouping Users into Roles
  • Preventing SQL Injection Attacks

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 75 Cities Across North America and the United Kingdom

Northeast/New England Southeast Midwest West/Southwest Canada United Kingdom
CT - Hartford
CT - New Haven
CT - Stamford
DC - Washington
MA - Boston
MA - Chelmsford
MA - Quincy
MA - Springfield
MA - Waltham
MA - Woburn
MA - Worcester
MD - Baltimore
MD - Columbia
NH - Manchester
NH - Nashua
NJ - Jersey City
NJ - Newark
NJ - Princeton
NY - Albany
NY - Binghamton
NY - Buffalo
NY - Ithaca
NY - Manhattan
NY - Rochester
NY - Syracuse
PA - Harrisburg
PA - Philadelphia
PA - Pittsburgh
RI - Providence
AL - Huntsville
FL - Fort Lauderdale
FL - Jacksonville
FL - Miami
FL - Orlando
FL - Pensacola
FL - Sarasota
FL - Tampa
FL - West Palm Beach
GA - Atlanta
GA - Savannah
LA - Shreveport
NC - Charlotte
NC - Raleigh-Durham
NC - Winston-Salem
SC - Charleston
VA - Alexandria
VA - Fairfax
VA - Norfolk
VA - Richmond
VA - Williamsburg
AR - Little Rock
IA - Cedar Rapids
IA - Des Moines
IL - Chicago
IL - Schaumburg
IL - Springfield
IN - Indianapolis
KY - Louisville
MI - Detroit
MI - Lansing
MN - Minneapolis
MO - Kansas City
MO - St. Charles
MO - Springfield
NE - Omaha
OH - Cincinnati
OH - Cleveland
OH - Columbus
OH - Dayton
OK - Oklahoma City
OK - Tulsa
TN - Memphis
TN - Nashville
WI - Milwaukee
AZ - Phoenix
AZ - Tucson
CA - Bakersfield
CA - Fresno
CA - Irvine
CA - Los Angeles
CA - Modesto
CA - Oakland
CA - Riverside
CA - Sacramento
CA - San Diego
CA - San Francisco
CA - San Jose
CA - Santa Clarita
CA - Santa Monica
CA - Temecula
CO - Denver
ID - Boise
NM - Albuquerque
NM - Las Cruces
NV - Las Vegas
OR - Portland
TX - Austin
TX - Corpus Christi
TX - Dallas
TX - El Paso
TX - Fort Worth
TX - Houston
TX - San Antonio
UT - Salt Lake City
WA - Seattle
WA - Spokane
AB - Calgary
AB - Edmonton
BC - Vancouver
MB - Winnipeg
QC - Montreal
QC - Quebec City
ON - Kingston
ON - Mississauga
ON - Ottawa
ON - Toronto
SK - Regina

Birmingham
Bristol
Chelmsford
Edinburgh
Glasgow
Leeds
Liverpool
London
Manchester


Hands On Technology Transfer, Inc.
1 Village Square, Suite 8
14 Fletcher Street
Chelmsford, MA 01824
1-800-413-0939 | 1-978-250-4299

Copyright© Hands On Technology Transfer, Inc.