Scheda corso MOC2778

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

This 3-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2008.
 
This course is intended for SQL Server database administrators, implementers, system engineers, and developers who are responsible for writing queries.

Obiettivi

After completing this course, students will be able to:
 
• Describe the uses of and ways to execute the Transact-SQL language.
• Use querying tools.
• 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.
 

Prerequisiti

Before attending this course, students must have:
 
• Logical database design.
• Physical database design.
• How data is stored in tables (rows and columns).
• Data integrity concepts.
• Relationships between tables and columns (primary key and foreign key, one-to-one, one-to-many, and many-to-many).
• Basic knowledge of the Microsoft Windows operating system and its core functionality. For example, how to use Windows Explorer, open and save files, and what a client/server application interaction means.

Contenuti

Getting Started with Databases and Transact-SQL in SQL Server 2008
 
  • Overview of SQL Server 2008
  • Overview of SQL Server Databases
  • Overview of the SQL Language
  • Syntax Elements of T-SQL
  • Working with T-SQL Scripts
  • Using T-SQL Querying Tools
 
Querying and Filtering Data
 
  • Using the SELECT Statement
  • Filtering Data
  • Working with NULL Values
  • Formatting Result Sets
  • Performance Considerations for Writing Queries
 
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
 
Working with Subqueries
 
  • Writing Basic Subqueries
  • Writing Correlated Subqueries
  • Comparing Subqueries with Joins and Temporary Tables
  • Using Common Table Expressions
 
Modifying Data in Tables
 
  • Overview of Transactions
  • Inserting Data into Tables
  • Deleting Data from Tables
  • Updating Data in Tables
 
Querying Metadata, XML, and Full-Text Indexes
 
  • Querying Metadata
  • Overview of XML
  • Querying XML Data
  • Overview of Full-Text Indexes
  • Querying Full-Text Indexes
 
Using Programming Objects for Data Retrieval
 
  • Encapsulating Expressions by Using User-Defined Functions
  • Encapsulating Queries by Using Views
  • Overview of Stored Procedures
  • Writing Distributed Queries
 
Using Advanced Querying Techniques
 
  • Considerations for Querying Complex Data
  • Querying Complex Table Structures
  • Writing Efficient Queries
  • Using Different Techniques for Complex Queries
  • Maintaining Query Files.
 
© 2009 Education Time S.p.A. | P.Iva 05352330962 | Note Legali | Privacy | Realizzato da Education Time