2778 - Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

PDFDownload a PDF version of this course outline

Duration:3 days

Price:$1,275.00

Test Level:0

Certifications:
  • No Certification
  • MCTS: SQL Server 2008, Database Development
  • MCTS: SQL Server 2008, Implementation and Maintenance
Exams:
  • 70-432
  • 70-433

Course Overview

This 3-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2008.

Audience Profile

This course is intended for SQL Server database administrators, implementers, system engineers, and developers who are responsible for writing queries.

At Course Completion

After completing this course, students will be able to:

  • Describe the uses of and ways to execute the Transact-SQL language.
  • Use querying tool.
  • Write SELECT queries to retrieve data.
  • Group and summarize data by using Transact-SQL.
  • Join data from multiple tables.
  • Write queries that retrieve and modify data by using subqueries.
  • Modify data in tables.
  • Query text fields with full-text search.
  • Describe how to create programming objects.
  • Use various techniques when working with complex queries.

Course Outline

Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008

The student will be introduced to how client/server architecture works, and examine the various database and business tasks that can be performed by using the components of SQL Server 2008. The student will also be introduced to SQL Server database concepts such as relational databases, normalization, and database objects. In addition, the student will learn how to use T-SQL to query databases and generate reports.

Lessons

  • 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

Lab : Using SQL Server Management Studio and SQLCMD

  • Exploring the Components and Executing Queries in SQL Server Management Studio
  • Starting and Using SQLCMD
  • Generating a Report from a SQL Server Database Using Microsoft Office Excel

After completing this module, students will be able to:

  • Describe the architecture and components of SQL Server 2008.
  • Describe the structure of a SQL Server database.
  • Explain the basics of the SQL language.
  • Describe the syntax elements of T-SQL.
  • Explain how to manage T-SQL scripts.
  • Use T-SQL querying tools to query SQL Server 2008 databases.

Module 2: Querying and Filtering Data

The students will be introduced to the basic Transact-SQL (T-SQL) statements that are used for writing queries, filtering data, and formatting result sets.

Lessons

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

Lab : Querying and Filtering Data

  • Retrieving Data by Using the SELECT Statement
  • Filtering Data by Using Different Search Conditions
  • Using Functions to Work with NULL Values
  • Formatting Result Sets

After completing this module, students will be able to:

  • Retrieve data by using the SELECT statement.
  • Filter data by using different search conditions.
  • Explain how to work with NULL values.
  • Format result sets.
  • Describe the performance considerations that affect data retrieval.

Module 3: Grouping and Summarizing Data

The students will learn to group and summarize data when generating reports in Microsoft SQL Server 2008 by using aggregate functions and the COMPUTE clause.

Lessons

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

Lab : Grouping and Summarizing Data

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

After completing this module, students will be able to:

  • Summarize data by using aggregate functions.
  • Summarize grouped data by using the GROUP BY and COMPUTE clauses.
  • Rank grouped data.
  • Create cross-tabulation queries by using the PIVOT and UNPIVOT clauses.

Module 4: Joining Data from Multiple Tables

The students will learn to write joins to query multiple tables, as well as limiting and combining result sets.

Lessons

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

Lab : Joining Data from Multiple Tables

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

After completing this module, students will be able to:

  • Query multiple tables by using joins.
  • Apply joins for typical reporting needs.
  • Combine and limit result sets.

Module 5: Working with Subqueries

The students will be introduced to basic and correlated subqueries and how these compare with joins and temporary tables. The students will also be introduced to using common table expressions in queries.

Lessons

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

Lab : Working with Subqueries

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

After completing this module, students will be able to:

  • Write basic subqueries.
  • Write correlated subqueries.
  • Compare subqueries with joins and temporary tables.
  • Use common table expressions in queries.

Module 6: Modifying Data in Tables

The students will be able to modify the data in tables by using the INSERT, DELETE, and UPDATE statements. In addition, students will examine how transactions work in a database, the importance of transaction isolation levels, and how to manage transactions.

Lessons

  • Inserting Data into Tables
  • Deleting Data from Tab Before attending this course, students must have:
  • Knowledge of data integrity concepts.
  • Core Windows Server skills.
  • Relational database design skills.
  • Programming skills.

Prerequisites

Before attending this course, students must have:

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

Additional requirements for MCTS: SQL Server 2008, Database Development or MCTS: SQL Server 2008, Implementation and Maintenance certification:

  • 6231: Maintaining a Microsoft SQL Server 2008 Database (5 Days) - required for exams 70-432 and 70-433.
  • 6232: Implementing a Microsoft SQL Server 2008 Database (5 Days) - required for exam 70-433 only.

Upcoming Classes

Microsoft Technical

    Windows Server

    SharePoint

    Windows 7

    Exchange Server

    SQL Server

    Office

    Visual Studio

    Lync

    Virtualization

    Other Technologies

      Office 365

      Systems Center

      Forefront

      Microsoft Dynamics

      Windows Small Business Server

      Select a Class

      Add to CartDatesLocationSeats TakenPrice
      Cart7/4/2012 - 7/6/2012
      Starts at 7:30 AM
      Phoenix, AZREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Atlanta, GAREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Boston, MAREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Chicago, ILREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Dallas, TXREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Denver, COREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Herndon, VAREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      Houston, TXREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      New York, NYREAL-ILT™
      $1,275.00
      Cart7/5/2012 - 7/7/2012
      Starts at 7:30 AM
      San Jose, CAREAL-ILT™
      $1,275.00
      Cart8/15/2012 - 8/17/2012
      Starts at 7:30 AM
      Phoenix, AZREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Atlanta, GAREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Boston, MAREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Chicago, ILREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Dallas, TXREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Denver, COREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Herndon, VAREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      Houston, TXREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      New York, NYREAL-ILT™
      $1,275.00
      Cart8/18/2012 - 8/20/2012
      Starts at 7:30 AM
      San Jose, CAREAL-ILT™
      $1,275.00

      Your class selection was successfully added to your cart.