M2778: Writing Queries Using MS SQL Server 2008 & 2005 Transact-SQL

3 Day Course
Hands On
Official Microsoft Curriculum
Code MS2778

This course has been retired. Please view currently available Microsoft SQL Server Training Courses.


Collapse all

Getting Started with Databases and Transact-SQL in SQL Server 2008 (5 topics)

  • Overview of SQL Server 2008
  • Overview of SQL Server Databases
  • Overview and Syntax Elements of T-SQL
  • Working with T-SQL Scripts
  • Using T-SQL Querying Tools

Querying and Filtering Data (5 topics)

  • Using the SELECT Statement
  • Filtering Data
  • Working with NULL Values
  • Formatting Result Sets
  • Performance Considerations for Writing Queries

Grouping and Summarizing Data (4 topics)

  • Summarizing Data by Using Aggregate Functions
  • Summarizing Grouped Data
  • Ranking Grouped Data
  • Creating Crosstab Queries

Joining Data from Multiple Tables (3 topics)

  • Querying Multiple Tables by Using Joins
  • Applying Joins for Typical Reporting Needs
  • Combining and Limiting Result Set

Working with Subqueries (4 topics)

  • Writing Basic Subqueries
  • Writing Correlated Subqueries
  • Comparing Subqueries with Joins and Temporary Tables
  • Using Common Table Expressions

Modifying Data in Tables (4 topics)

  • Inserting Data into Tables
  • Deleting Data from Tables
  • Updating Data in Tables
  • Overview of Transactions

Querying Metadata, XML, and Full-Text Indexes (5 topics)

  • Querying Metadata
  • Overview of XML
  • Querying XML Data
  • Overview of Full-Text Indexes
  • Querying Full-Text Indexes

Using Programming Objects for Data Retrieval (5 topics)

  • Overview of Views
  • Overview of User-Defined Functions
  • Overview of Stored Procedures
  • Overview of Triggers
  • Writing Distributed Queries

Using Advanced Querying Techniques (5 topics)

  • Considerations for Querying Data
  • Working with Data Types
  • Cursors and Set-Based Queries
  • Dynamic SQL
  • Maintaining Query Files


Before attending this course, students must have:

  • Knowledge of data integrity concepts.
  • Core Windows Server skills.
  • Relational database design skills.
  • Programming skills.

Course PDF