SQL Server 2008

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
(Microsoft Training Course: 2778) - 3 days - £1295 exc VAT

Save up to 50% of the cost of some courses: check our Certification Packages or buy F1 Training Vouchers
 Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb 
Birmingham Centre    23  28       
Bristol Centre    06  01   07    
Edinburgh Centre    30    02     
Glasgow Centre      03       
Leeds (Brown Lane West) Centre    09         
Leeds (City Exchange) Centre   24  27 23 21 25 14    
London International House Centre E1W      02 13      
London Middlesex Street Centre E1    16 11   05
Manchester (Portland St) Centre29 25 23 27 07 17 21 19 23 21 18 22  
Newcastle Centre23        16     
Swindon Centre      03   10    

> Target Audience
This course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2008. It is intended SQL Server database administrators, implementers, system engineers, and developers who are responsible for writing queries.
> Course outline
  1. Getting Started with Databases and Transact-SQL in SQL Server 2008
  2. Querying and Filtering Data
  3. Grouping and Summarising Data
  4. Joining Data from Multiple Tables
  5. Working with Subqueries
  6. Modifying Data in Tables
  7. Querying Metadata, XML, and Full-Text Indexes
  8. Using Programming Objects for Data Retrieval
  9. Using Advanced Querying Techniques

Supplementary Information
Module 1: 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
  • 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
  • Using the SELECT Statement
  • Filtering Data
  • Working with NULL Values
  • Formatting Result Sets
  • Performance Considerations for Writing Queries
  • Lab : Querying and Filtering Data
  • 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 Summarising Data
  • Summarising Data by Using Aggregate Functions
  • Summarising Grouped Data
  • Ranking Grouped Data
  • Creating Crosstab Queries
  • Lab : Grouping and Summarising Data
  • Summarise data by using aggregate functions.
  • Summarise 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
  • Querying Multiple Tables by Using Joins
  • Applying Joins for Typical Reporting Needs
  • Combining and Limiting Result Set
  • Lab : Joining Data from Multiple Tables
  • Query multiple tables by using joins.
  • Apply joins for typical reporting needs.
  • Combine and limit result sets.
Module 5: Working with Subqueries
  • Writing Basic Subqueries
  • Writing Correlated Subqueries
  • Comparing Subqueries with Joins and Temporary Tables
  • Using Common Table Expressions
  • Lab : Working with Subqueries
  • 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
  • Inserting Data into Tables
  • Deleting Data from Tables
  • Updating Data in Tables
  • Overview of Transactions
  • Lab : Modifying Data in Tables
  • Insert data into tables.
  • Delete data from tables.
  • Update data in tables.
  • Describe transactions.
Module 7: 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
  • Query metadata.
  • Describe the functionality of XML.
  • Query XML data.
  • Describe the functionality of full-text indexes.
  • Query full-text indexes.
Module 8: 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
  • Encapsulate queries by using views.
  • Encapsulate expressions by using user-defined functions.
  • Explain how stored procedures encapsulate T-SQL logic.
  • Define triggers, types of triggers, create a trigger.
  • Write distributed queries.
Module 9: 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
  • Explain the recommendations for querying complex data.
  • Query complex table structures.
  • Write efficient queries.
  • Use various techniques when working with complex queries.
  • Maintain query files.
> Pre-Requisites
Before attending this course, students must have the following pre-requisites:
  • Knowledge of data integrity concepts.
  • Core Windows Server skills.
  • Relational database design skills.
  • Programming skills.
> Purpose
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.
> Supplementary Information