Need Help? Call us at (281) 541-2807 Visit our Facebook Page Follow us on Twitter Subscribe to our RSS Feeds

Microsoft Transact-SQL Programming

presented by Hands-On Technology Transfer
View the Hands-On Technology Transfer Profile and Course Listings

Bring a trainer to your location to deliver this class for groups of 10 or more.

Summary

This Transact-SQL programming course teaches students relational database fundamentals and SQL programming skills in the Microsoft environment

Workshop Description/Agenda

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.

Prerequisites

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

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 Vi

Who Should Attend

Computer Industry Professionals

Additional Information

Training Provider: Hands-On Technology Transfer

Course Topics: Computers / IT Training > Database

Training Course Summary: This Transact-SQL programming course teaches students relational database fundamentals and SQL programming skills in the Microsoft environment

Live Webinar Dates

Live Seminar Dates/Locations

MAR 8-7    IN  LITTLE ROCK, AR
MAR 8-7    IN  WICHITA, KS
MAR 8-7    IN  SHREVEPORT, LA
MAR 8-7    IN  OKLAHOMA CITY, OK
MAR 8-7    IN  TULSA, OK
MAR 8-7    IN  AUSTIN, TX
MAR 8-7    IN  CORPUS CHRISTI, TX
MAR 8-7    IN  DALLAS, TX
MAR 8-7    IN  HOUSTON, TX
MAR 8-7    IN  SAN ANTONIO, TX
MAR 8-7    IN  FT WORTH, TX
MAR 15-14    IN  FT LAUDERDALE, FL
MAR 15-14    IN  HUNTSVILLE, AL
MAR 15-14    IN  JACKSONVILLE, FL
MAR 15-14    IN  MIAMI, FL
MAR 15-14    IN  ORLANDO, FL
MAR 15-14    IN  PENSACOLA, FL
MAR 15-14    IN  SARASOTA, FL
MAR 15-14    IN  TAMPA, FL
MAR 15-14    IN  WEST PALM BEACH, FL
MAR 15-14    IN  ATLANTA, GA
MAR 15-14    IN  SAVANNAH, GA
MAR 15-14    IN  CHARLESTON, SC
MAR 22-21    IN  HUNTSVILLE, AL
MAR 22-21    IN  WASHINGTON, DC
MAR 22-21    IN  JACKSONVILLE, FL
MAR 22-21    IN  MIAMI, FL
MAR 22-21    IN  ORLANDO, FL
MAR 22-21    IN  PENSACOLA, FL
MAR 22-21    IN  SARASOTA, FL
MAR 22-21    IN  TAMPA, FL
MAR 22-21    IN  WEST PALM BEACH, FL
MAR 22-21    IN  ATLANTA, GA
MAR 22-21    IN  SAVANNAH, GA
MAR 22-21    IN  BALTIMORE, MD
MAR 22-21    IN  COLUMBIA, MD
MAR 22-21    IN  CHARLOTTE, NC
MAR 22-21    IN  RALEIGH-DURHAM, NC
MAR 22-21    IN  WINSTON-SALEM, NC
MAR 22-21    IN  JERSEY CITY, NJ
MAR 22-21    IN  NEWARK, NJ
MAR 22-21    IN  PRINCETON, NJ
MAR 22-21    IN  MANHATTAN, NY
MAR 22-21    IN  HARRISBURG, PA
MAR 22-21    IN  PHILADELPHIA, PA
MAR 22-21    IN  CHARLESTON, SC
MAR 22-21    IN  ALEXANDRIA, VA
MAR 22-21    IN  ARLINGTON, VA
MAR 22-21    IN  FAIRFAX, VA
MAR 22-21    IN  NORFOLK, VA
MAR 22-21    IN  RICHMOND, VA
MAR 22-21    IN  WILLIAMSBURG, VA
MAR 22-21    IN  FT LAUDERDALE, FL
MAR 29-28    IN  FAIRFIELD, CT
MAR 29-28    IN  HARTFORD, CT
MAR 29-28    IN  NEW HAVEN, CT
MAR 29-28    IN  STAMFORD, CT
MAR 29-28    IN  BOSTON, MA
MAR 29-28    IN  CHELMSFORD, MA
MAR 29-28    IN  QUINCY, MA
MAR 29-28    IN  SPRINGFIELD, MA
MAR 29-28    IN  WALTHAM, MA
MAR 29-28    IN  WOBURN, MA
MAR 29-28    IN  WORCESTER, MA
MAR 29-28    IN  MANCHESTER, NH
MAR 29-28    IN  NASHUA, NH
MAR 29-28    IN  ALBANY, NY
MAR 29-28    IN  PROVIDENCE, RI
APR 5-4    IN  LOUISVILLE, KY
APR 5-4    IN  BINGHAMTON, NY
APR 5-4    IN  BUFFALO, NY
APR 5-4    IN  ITHACA, NY
APR 5-4    IN  ROCHESTER, NY
APR 5-4    IN  SYRACUSE, NY
APR 5-4    IN  CINCINNATI, OH
APR 5-4    IN  CLEVELAND, OH
APR 5-4    IN  COLUMBUS, OH
APR 5-4    IN  DAYTON, OH
APR 5-4    IN  PITTSBURGH, PA
APR 5-4    IN  MEMPHIS, TN
APR 5-4    IN  NASHVILLE, TN
APR 12-11    IN  CEDAR RAPIDS, IA
APR 12-11    IN  DES MOINES, IA
APR 12-11    IN  CHICAGO, IL
APR 12-11    IN  SCHAUMBURG, IL
APR 12-11    IN  SPRINGFIELD, IL
APR 12-11    IN  INDIANAPOLIS, IN
APR 12-11    IN  DETROIT, MI
APR 12-11    IN  LANSING, MI
APR 12-11    IN  MINNEAPOLIS, MN
APR 12-11    IN  KANSAS CITY, MO
APR 12-11    IN  SPRINGFIELD, MO
APR 12-11    IN  OMAHA, NE
APR 12-11    IN  MILWAUKEE, WI
APR 12-11    IN  ST CHARLES, MO
APR 19-18    IN  DENVER, CO
APR 19-18    IN  BOISE, ID
APR 19-18    IN  PORTLAND, OR
APR 19-18    IN  SALT LAKE CITY, UT
APR 19-18    IN  SEATTLE, WA
APR 19-18    IN  SPOKANE, WA
APR 26-25    IN  BAKERSFIELD, CA
APR 26-25    IN  FRESNO, CA
APR 26-25    IN  MODESTO, CA
APR 26-25    IN  OAKLAND, CA
APR 26-25    IN  SACRAMENTO, CA
APR 26-25    IN  SAN FRANCISCO, CA
APR 26-25    IN  SAN JOSE, CA
MAY 3-2    IN  PHOENIX, AZ
MAY 3-2    IN  TUCSON, AZ
MAY 3-2    IN  IRVINE, CA
MAY 3-2    IN  LOS ANGELES, CA
MAY 3-2    IN  RIVERSIDE, CA
MAY 3-2    IN  SAN BERNARDINO, CA
MAY 3-2    IN  SAN DIEGO, CA
MAY 3-2    IN  SANTA CLARITA, CA
MAY 3-2    IN  SANTA MONICA, CA
MAY 3-2    IN  TEMECULA, CA
MAY 3-2    IN  ALBUQUERQUE, NM
MAY 3-2    IN  LAS CRUCES, NM
MAY 3-2    IN  LAS VEGAS, NV
MAY 3-2    IN  EL PASO, TX
MAY 10-9    IN  LITTLE ROCK, AR
MAY 10-9    IN  WICHITA, KS
MAY 10-9    IN  SHREVEPORT, LA
MAY 10-9    IN  OKLAHOMA CITY, OK
MAY 10-9    IN  TULSA, OK
MAY 10-9    IN  AUSTIN, TX
MAY 10-9    IN  CORPUS CHRISTI, TX
MAY 10-9    IN  DALLAS, TX
MAY 10-9    IN  HOUSTON, TX
MAY 10-9    IN  SAN ANTONIO, TX
MAY 10-9    IN  FT WORTH, TX
MAY 17-16    IN  FT LAUDERDALE, FL
MAY 17-16    IN  HUNTSVILLE, AL
MAY 17-16    IN  JACKSONVILLE, FL
MAY 17-16    IN  MIAMI, FL
MAY 17-16    IN  ORLANDO, FL
MAY 17-16    IN  PENSACOLA, FL
MAY 17-16    IN  SARASOTA, FL
MAY 17-16    IN  TAMPA, FL
MAY 17-16    IN  WEST PALM BEACH, FL
MAY 17-16    IN  ATLANTA, GA
MAY 17-16    IN  SAVANNAH, GA
MAY 17-16    IN  CHARLESTON, SC
MAY 24-23    IN  FAIRFIELD, CT
MAY 24-23    IN  HARTFORD, CT
MAY 24-23    IN  NEW HAVEN, CT
MAY 24-23    IN  STAMFORD, CT
MAY 24-23    IN  WASHINGTON, DC
MAY 24-23    IN  BOSTON, MA
MAY 24-23    IN  CHELMSFORD, MA
MAY 24-23    IN  QUINCY, MA
MAY 24-23    IN  SPRINGFIELD, MA
MAY 24-23    IN  WALTHAM, MA
MAY 24-23    IN  WOBURN, MA
MAY 24-23    IN  WORCESTER, MA
MAY 24-23    IN  BALTIMORE, MD
MAY 24-23    IN  COLUMBIA, MD
MAY 24-23    IN  CHARLOTTE, NC
MAY 24-23    IN  RALEIGH-DURHAM, NC
MAY 24-23    IN  WINSTON-SALEM, NC
MAY 24-23    IN  MANCHESTER, NH
MAY 24-23    IN  NASHUA, NH
MAY 24-23    IN  JERSEY CITY, NJ
MAY 24-23    IN  NEWARK, NJ
MAY 24-23    IN  PRINCETON, NJ
MAY 24-23    IN  ALBANY, NY
MAY 24-23    IN  MANHATTAN, NY
MAY 24-23    IN  HARRISBURG, PA
MAY 24-23    IN  PHILADELPHIA, PA
MAY 24-23    IN  PROVIDENCE, RI
MAY 24-23    IN  ALEXANDRIA, VA
MAY 24-23    IN  ARLINGTON, VA
MAY 24-23    IN  FAIRFAX, VA
MAY 24-23    IN  NORFOLK, VA
MAY 24-23    IN  RICHMOND, VA
MAY 24-23    IN  WILLIAMSBURG, VA
JUN 7-6    IN  LOUISVILLE, KY
JUN 7-6    IN  BINGHAMTON, NY
JUN 7-6    IN  BUFFALO, NY
JUN 7-6    IN  ITHACA, NY
JUN 7-6    IN  ROCHESTER, NY
JUN 7-6    IN  SYRACUSE, NY
JUN 7-6    IN  CINCINNATI, OH
JUN 7-6    IN  CLEVELAND, OH
JUN 7-6    IN  COLUMBUS, OH
JUN 7-6    IN  DAYTON, OH
JUN 7-6    IN  PITTSBURGH, PA
JUN 7-6    IN  MEMPHIS, TN
JUN 7-6    IN  NASHVILLE, TN
JUN 14-13    IN  CEDAR RAPIDS, IA
JUN 14-13    IN  DES MOINES, IA
JUN 14-13    IN  CHICAGO, IL
JUN 14-13    IN  SCHAUMBURG, IL
JUN 14-13    IN  SPRINGFIELD, IL
JUN 14-13    IN  INDIANAPOLIS, IN
JUN 14-13    IN  DETROIT, MI
JUN 14-13    IN  LANSING, MI
JUN 14-13    IN  MINNEAPOLIS, MN
JUN 14-13    IN  KANSAS CITY, MO
JUN 14-13    IN  SPRINGFIELD, MO
JUN 14-13    IN  OMAHA, NE
JUN 14-13    IN  MILWAUKEE, WI
JUN 14-13    IN  ST CHARLES, MO
JUN 21-20    IN  DENVER, CO
JUN 21-20    IN  BOISE, ID
JUN 21-20    IN  PORTLAND, OR
JUN 21-20    IN  SALT LAKE CITY, UT
JUN 21-20    IN  SEATTLE, WA
JUN 21-20    IN  SPOKANE, WA
JUN 28-27    IN  PHOENIX, AZ
JUN 28-27    IN  TUCSON, AZ
JUN 28-27    IN  BAKERSFIELD, CA
JUN 28-27    IN  FRESNO, CA
JUN 28-27    IN  IRVINE, CA
JUN 28-27    IN  LOS ANGELES, CA
JUN 28-27    IN  MODESTO, CA
JUN 28-27    IN  OAKLAND, CA
JUN 28-27    IN  RIVERSIDE, CA
JUN 28-27    IN  SACRAMENTO, CA
JUN 28-27    IN  SAN BERNARDINO, CA
JUN 28-27    IN  SAN DIEGO, CA
JUN 28-27    IN  SAN FRANCISCO, CA
JUN 28-27    IN  SAN JOSE, CA
JUN 28-27    IN  SANTA CLARITA, CA
JUN 28-27    IN  SANTA MONICA, CA
JUN 28-27    IN  TEMECULA, CA
JUN 28-27    IN  ALBUQUERQUE, NM
JUN 28-27    IN  LAS CRUCES, NM
JUN 28-27    IN  LAS VEGAS, NV
JUN 28-27    IN  EL PASO, TX
JUL 12-11    IN  LITTLE ROCK, AR
JUL 12-11    IN  WICHITA, KS
JUL 12-11    IN  SHREVEPORT, LA
JUL 12-11    IN  OKLAHOMA CITY, OK
JUL 12-11    IN  TULSA, OK
JUL 12-11    IN  AUSTIN, TX
JUL 12-11    IN  CORPUS CHRISTI, TX
JUL 12-11    IN  DALLAS, TX
JUL 12-11    IN  HOUSTON, TX
JUL 12-11    IN  SAN ANTONIO, TX
JUL 12-11    IN  FT WORTH, TX