1-800-THE-TREE (1-800-843-8733)
 

Developing SQL Queries for SQL Server: Hands-On

 
Course: 534     Type: Hands-On Training     Duration: 4 Days

Quick Enroll    

You Will Learn How To
  • Develop complex and robust SQL queries for SQL Server 2005 and SQL Server 2000
  • Query multiple tables with inner joins, outer joins and self joins
  • Transform data with built-in functions
  • Summarize data using aggregation and grouping
  • Execute analytic functions to calculate ranks
  • Build simple and correlated subqueries

Course Benefits
Microsoft's Transact-SQL is the cornerstone of all SQL Server database operations. In this hands-on course, you learn to exploit the full potential of the SELECT statement to write robust queries using the best query method for your application, test your queries, and avoid common errors and pitfalls.

Who Should Attend
Those who are developing systems using SQL Server databases, or who are using SQL to extract and analyze data from SQL Server databases. Course 131, "SQL Server 2005 Comprehensive Introduction," Course 530, "SQL Server 2000 Comprehensive Introduction," Course 925, "SQL Programming Language Introduction," or equivalent knowledge is assumed.

Hands-On Training
Learn by doing as you use Transact-SQL to solve problems and maximize performance. Instructor-led exercises include:
  • Handling NULL values in expressions and conditions
  • Coding inner and outer joins
  • Implementing self joins
  • Computing aggregate results
  • Adding subtotals and grand totals to aggregate results
  • Employing ranking and analytic functions
  • Reusing subqueries as common table expressions
  • Analyzing query plans and tuning queries

Course 534 Content
Introduction and Overview
SQL fundamentals
  • Retrieving data with SELECT
  • Expressions
  • Literals
  • Handling NULLs properly
Executing queries
  • Analyzing query plans
  • Enhancing query performance
  • Testing queries
  • Selecting the best alternatives
  • Avoiding errors and pitfalls
Querying Multiple Tables
Implementing various types of joins
  • Inner joins
  • Cross joins
  • Left, right and full outer joins
  • Equijoins vs. theta joins
  • The performance implications of joins
  • Adding filter conditions to outer joins
Writing self joins
  • Joining a table to itself
  • Chaining self joins
  • Solving time-interval problems
Combining queries with set operators
  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT
Scalar and Aggregate Functions
Taking advantage of scalar functions
  • Converting datatypes
  • Handling dates
  • Manipulating strings
  • Choosing the right function for the job
Summarizing data with aggregate functions
  • COUNT
  • SUM
  • AVG
  • MIN
  • MAX
  • Managing NULLs
  • Suppressing duplicates
Grouping data
  • GROUP BY vs. GROUP BY ALL
  • Applying conditions with HAVING
  • Calculating moving averages
Extending group queries
  • Nesting grouped aggregates
  • Joins and grouping
  • Introducing subtotals with CUBE and ROLLUP
Building crosstab reports
  • Using CASE to turn rows into columns
  • Applying PIVOT and UNPIVOT
Performing Extensive Analysis with Analytic Functions
The OVER clause
  • Specifying the ordering before applying the function
  • Splitting the result set into logical partitions
Calculating ranks
  • RANK and DENSE_RANK
  • ROW_NUMBER with ordered sets
  • Calculating percentiles
Extending the use of aggregates
  • Partitioning in multiple levels
  • Computing running totals
  • Comparing row and aggregate values
Building Subqueries
Simple subqueries
  • Subqueries in conditions and column expressions
  • Creating multilevel subqueries
  • Avoiding problems when subqueries return NULLs
  • Handling multirow subquery results
Correlated subqueries
  • Accessing values from the outer query
  • EXISTS vs. IN
  • Identifying duplicates
  • Avoiding accidental correlation
Common table expressions
  • Reusable subqueries
  • Recursive subqueries
  • Traversing hierarchies
Breaking Down Complex Queries
  • Overcoming SQL limitations
  • Reducing complexity and improving performance
  • Exploring alternatives for decomposing: tables, views, common table expressions, table-valued functions

Related Courses

SQL Server is a trademark of Sybase, Inc.
  
 
Request More Info

Salutation

First Name

Last Name

Company

Zip Code

Country
   Codes
Work Phone

Extension

E-mail

A representative will contact you to follow up your request.
Privacy Statement

Save as much as $2,350 on a Triple-Pack!

Developing SQL Queries for SQL Server: Hands-On
Upcoming Dates
May 20 - 23, 2008
 Washington, DC (Rockville, MD)
May 27 - 30, 2008
 Washington, DC (Alexandria, VA)
Jun 17 - 20, 2008
 New York
Jun 24 - 27, 2008
 Atlanta
Jun 24 - 27, 2008
 Chicago (Downtown)
Jun 24 - 27, 2008
 Ottawa
Jul 8 - 11, 2008
 Los Angeles
Jul 8 - 11, 2008
 Washington, DC (Reston, VA)
Jul 15 - 18, 2008
 Toronto
Jul 22 - 25, 2008
 Washington, DC (Rockville, MD)

Developing SQL Queries for SQL Server: Hands-On
Bring Learning Tree On-Site

About the Course Author
Dag Hoftun Knutsen

"Attendees of this course to leave with the ability to exploit the full power of SQL to efficiently retrieve data from their database with minimal effort. They also learn how..."
more »


Course Tuition
$ 2,650 Standard Tuition
Tuition with a Savings Plan
$ 1,660 10-Day Pass
$ 1,665 Training Passport
$ 1,830 Flex-Pass
$ 2,095 Voucher 10-Pack
$ 2,385 Alumni Gold Discount
$ 2,360 Government Discount
 

 

Developing SQL Queries for SQL Server: Hands-On
Developing SQL Queries for SQL Server: Hands-On
Course participants traversing hierarchies with Transact-SQL.


SQL Server 2005 for the Enterprise



Certification Core Course CPE 23 Credits 2 Hour(s) College Credit
Customer Service or Enroll: 1-800-843-8733