M2778 London
Writing Queries Using MS SQL Server 2008 & 2005 Transact-SQL (Premier)
London
EC2N 1AR
M2778 70-293
Course Title: Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Course Code: M2778
Version: A
Level: 200
Duration: 3 Days
Course Overview
The Writing Queries Using Microsoft SQL Server 2008 Transact-SQL M2778 instructor-led training course has been designed to provide candidates with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2008.Target Audience
Candidates who should consider attending the M2778 Microsoft training course are SQL Server database administrators, implementers, system engineers, and developers who are responsible for writing queries.Course Objectives
On successfully completing the M2778 course candidates 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 Prerequisites
Candidates attending the M2778 Microsoft training course should have skills and knowledge of data integrity concepts, Core Windows Server, relational database design and programming.Testing and Certification
The M2778 Microsoft training course is the recommended preparation for the 70-293: Planning and Maintaining a Microsoft Windows Server 2003 Network Infrastructure exam.Course Content
Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008
In this module candidates 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 module also introduces SQL Server database concepts such as relational databases, normalization and database objects. Candidates will also 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
- 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
- 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
In this module candidates 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
- Retrieving Data by Using the SELECT Statement
- Filtering Data by Using Different Search Conditions
- Using Functions to Work with NULL Values
- Formatting Result Sets
- 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
In this module candidates will learn how 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
- Summarizing Data by Using Aggregate Functions
- Summarizing Grouped Data
- Ranking Grouped Data
- Creating Crosstab Queries
- 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
In this module candidates will learn how 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
- Querying Multiple Tables by Using Joins
- Applying Joins for Typical Reporting Needs
- Combining and Limiting Result Sets
- Query multiple tables by using joins
- Apply joins for typical reporting needs
- Combine and limit result sets
Module 5: Working with Subqueries
In this module candidates will be introduced to basic and correlated Subqueries and how these compare with joins and temporary tables. The module also introduces how to use common table expressions in queries.
Lessons:
- Writing Basic Subqueries
- Writing Correlated Subqueries
- Comparing Subqueries with Joins and Temporary Tables
- Using Common Table Expressions
- Writing Basic Subqueries
- Writing Correlated Subqueries
- Comparing Subqueries with Joins and Temporary Tables
- Using Common Table Expressions
- 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
In this module candidates will learn how to modify the data in tables by using the INSERT, DELETE, and UPDATE statements. In addition, candidates 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 Tables
- Updating Data in Tables
- Overview of Transactions
- Inserting Data into Tables
- Deleting Data from Tables
- Updating Data in Tables
- Working with Transactions
- Insert data into tables
- Delete data from tables
- Update data in tables
- Describe transactions
Module 7: Querying Metadata, XML, and Full-Text Indexes
In this module candidates will learn how to query semi-structured and unstructured data. Candidates will also learn how SQL Server 2008 handles XML data and will query XML data and introduced to full-text indexing in SQL Server 2008.
Lessons:
- Querying Metadata
- Overview of XML
- Querying XML Data
- Overview of Full-Text Indexes
- Querying Full-Text Indexes
- Querying Metadata
- Querying XML Data
- Creating and Querying 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
In this module candidates will be introduced to user-defined functions and executing various kinds of queries by using user-defined functions. The module introduces SQL Server views that encapsulate data and present users with limited and relevant information. Candidates will also be introduced to SQL Server stored procedures and the functionalities of the various programming objects as well as how to perform distributed queries and how SQL Server works with heterogeneous data such as databases, spreadsheets and other servers.
Lessons:
- Overview of Views
- Overview of User-Defined Functions
- Overview of Stored Procedures
- Overview of Triggers
- Writing Distributed Queries
- Creating Views
- Creating User-Defined Functions
- Creating Stored Procedures
- Writing Distributed Queries
- 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
In this module candidates will be introduced to best practices for querying complex data. The module also examines how to query complex table structures such as data stored in hierarchies and self-referencing tables. Candidates will also analyze the recommended guidelines for executing queries and how to optimize query performance.
Lessons:
- Considerations for Querying Data
- Working with Data Types
- Cursors and Set-Based Queries
- Dynamic SQL
- Maintaining Query Files
- Using Execution Plans
- Converting Data Types
- Implementing a Hierarchy
- Using Cursors and Set-Based Queries
- 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
