Microsoft Course 2778 - Writing Queries Using Microsoft SQL Server 2008 Transact-SQL — A 3-Day Course
Course Synopsis
This 3-day instructor led M2778 course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2008.
Course Objectives
On completion of this M2778 trainig course, delegates should 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
Intended Audience
This course is intended for SQL Server database administrators, implementers, system engineers, and developers who are responsible for writing queries.
Course Prerequisites
Before attending this course, students should have the following prerequisites:
- Knowledge of data integrity concepts
- Core Windows Server skills
- Relational database design skills
- Programming skills
Publicly scheduled dates, locations, and prices
London — £595 (+VAT)
- 29–31 Mar 2010
- 7–9 Apr 2010
- 5–7 May 2010
- 2–4 Jun 2010
- 7–9 Jul 2010
- 1–3 Sep 2010
- 29 Sep–1 Oct 2010
- 6–8 Oct 2010
- 3–5 Nov 2010
- 1–3 Dec 2010
Wokingham — £595 (+VAT)
- 5–7 May 2010
- 19–21 Jul 2010
- 1–3 Sep 2010
- 17–19 Nov 2010
Reading — £595 (+VAT)
- 2–4 Jun 2010
Milton Keynes — £595 (+VAT)
- 30 Jun–2 Jul 2010
Manchester — £595 (+VAT)
- 15–17 Mar 2010
- 17–19 May 2010
- 26–28 May 2010
- 26–28 Jul 2010
Leeds — £595 (+VAT)
- 22–24 Mar 2010
- 19–21 Apr 2010
- 2–4 Jun 2010
- 14–16 Jun 2010
- 16–18 Aug 2010
- 13–15 Sep 2010
- 25–27 Oct 2010
Glasgow — £595 (+VAT)
- 5–7 May 2010
Outline Course Contents
Getting Started with Databases and Transact-SQL in SQL Server 2008
- 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
Querying and Filtering Data
- 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
Grouping and Summarizing Data
- 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
Joining Data from Multiple Tables
- 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
Working with Subqueries
- 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
Modifying Data in Tables
- Inserting Data into Tables
- Deleting Data from Tables
- Updating Data in Tables
- Overview of Transactions
- Lab : Modifying Data in Tables
- Inserting Data into Tables
- Deleting Data from Tables
- Updating Data in Tables
- Working with Transactions
Querying Metadata, XML, and Full-Text Indexes
- Querying Metadata
- Overview of XML
- Querying XML Data
- Overview of Full-Text Indexes
- Querying Full-Text Indexes
- Lab : Querying Metadata, XML, and Full-Text Indexes
- Querying Metadata
- Querying XML Data
- Creating and Querying Full-Text Indexes
Using Programming Objects for Data Retrieval
- Overview of Views
- Overview of User-Defined Functions
- Overview of Stored Procedures
- Overview of Triggers
- Writing Distributed Queries
- Lab : Using Programming Objects for Data Retrieval
- Creating Views
- Creating User-Defined Functions
- Creating Stored Procedures
- Writing Distributed Queries
Using Advanced Querying Techniques
- Considerations for Querying Data
- Working with Data Types
- Cursors and Set-Based Queries
- Dynamic SQL
- Maintaining Query Files
- Lab : Using Advanced Querying Techniques
- Using Execution Plans
- Converting Data Types
- Implementing a Hierarchy
- Using Cursors and Set-Based Queries
