Day 1
Getting Started with Databases and Transact-SQL
Overview
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.
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.
Querying and Filtering Data
Overview
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.
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.
Grouping and Summarizing Data
Overview
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.
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.
Day 2
Joining Data from Multiple Tables
Overview
The students will learn to write joins to query multiple tables, as well as limiting and combining 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.
Working with Subqueries
Overview
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.
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.
Modifying Data in Tables
Overview
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.
After completing this module, students will be able to:
- Describe transactions.
- Insert data into tables.
- Delete data from tables.
- Update data in tables.
Day 3
Querying Metadata, XML, and Full-Text Indexes
Overview
The students will learn to query semi-structured and unstructured data. The students will also learn how SQL Server 2008 handles XML data and will query XML data. The students will also be introduced to full-text indexing in SQL Server 2008.
After completing this module, students will be able to:
- Query metadata.
- Describe the functionality of XML.
- Query XML data.
- Describe the functionality of full-text indexes.
- Query full-text indexes.
Data Retrieval
Overview
The students will be introduced to user-defined functions and executing various kinds of queries by using user-defined functions. The students will be introduced to SQL Server views that encapsulate data and present users with limited and relevant information. In addition, the students will be introduced to SQL Server stored procedures and the functionalities of the various programming objects. The students will learn how to perform distributed queries and how SQL Server works with heterogeneous data such as databases, spreadsheets, and other servers.
After completing this module, students will be able to:
- Encapsulate expressions by using user-defined functions.
- Encapsulate queries by using views.
- Explain how stored procedures encapsulate T-SQL logic.
- Write distributed queries.
Using Advanced Querying Techniques
Overview
The students will be introduced to best practices for querying complex data. The students will also examine how to query complex table structures such as data stored in hierarchies and self-referencing tables. The students will analyze the recommended guidelines for executing queries and how to optimize query performance.
After completing this module, students will be able to:
- 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.