1-888-THE-TREE (1-888-843-8733)
PRODUCTIVITY THROUGH EDUCATION®
 

Developing SQL Queries for SQL Server: Hands-On

 
Course: 534   Duration: 4 Days
 
 

You Will Learn How To

  • Develop complex and robust SQL queries for SQL Server 2008, 2005 and 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. Knowledge of SQL Server at the level of Course 137, "SQL Server 2008 Comprehensive Introduction," or Course 925, "SQL Programming Language Introduction," 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

Related Courses

 
SQL Server is a registered trademark of Microsoft Corporation.
 

Training Dates

Live online classroom training.Participate in person or in live, online events (highlighted) via Learning Tree AnyWareTM.
Feb 28 - Mar 2Ottawa 
Jul 24 - 27Toronto 
Jul 31 - Aug 3Ottawa 
Nov 20 - 23Ottawa 
Dec 4 - 7Toronto 

US Dates

Feb 21 - 24New York 
Apr 2 - 5Rockville, MD
Apr 10 - 13Dallas 
Apr 10 - 13New York 
Apr 17 - 20Alexandria, VA
Apr 24 - 27Los Angeles 
May 1 - 4Reston, VA
May 8 - 11Atlanta 
May 15 - 18New York 

For AnyWare enrolments, please register at least 10 days prior to the start of the course.


For complete schedule, please visit www.learningtree.ca
http://www.learningtree.ca/courses/534pf.htm
 
 
1-888-THE-TREE (1-888-843-8733)
PRODUCTIVITY THROUGH EDUCATION®
 

Developing SQL Queries for SQL Server: Hands-On

 
Course: 534   Duration: 4 Days
 
 
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
  • Explicit vs. implicit conversion
  • Performing calculations on dates and times
  • Extracting date and time components
  • Determining date and time format
  • 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 and GROUP BY ALL
  • Applying conditions with HAVING
  • Calculating moving averages

Extending group queries

  • Nesting grouped aggregates
  • Joins and grouping

Building crosstab reports

  • Using CASE to turn rows into columns
  • Applying PIVOT

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

Extending the use of aggregates

  • Partitioning in multiple levels
  • 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 and recursive subqueries
  • Traversing hierarchies

Breaking Down Complex Queries

  • Overcoming SQL limitations
  • Reducing complexity and improving performance
  • Exploring alternatives for decomposing: temporary tables, views, common table expressions
http://www.learningtree.ca/courses/534pf.htm
 
 
1-888-THE-TREE (1-888-843-8733)
PRODUCTIVITY THROUGH EDUCATION®
 

Developing SQL Queries for SQL Server: Hands-On Tuition

 
Course: 534   Duration: 4 Days
 
 
Course Tuition
$ 3,220Standard Tuition
Tuition with a Savings Plan
$ 2,2952-Course Passport
$ 1,8353-Course Passport
$ 1,7604-Course Passport
$ 2,950Voucher 5-Pack
$ 2,830Government Discount

Your Course Tuition Entitles You To...

  • Class participation
  • Team workshops
  • Use of in-class hands-on equipment
  • Comprehensive course materials
  • Morning and afternoon refreshments
  • Course Completion Certificate awarding Continuing Education Units
  • FREE participation in Professional Certification
 
 

Tuition Savings Plans

2-Course Passport
  • 2 Courses in 12 months for $4,590
  • As little as $2,295 per course
  • Savings up to 35% per course
3-Course Passport
  • 3 Courses in 24 months for $5,500
  • As little as $1,835 per course
  • Savings up to 50% per course
4-Course Passport
  • 4 Courses in 24 months for $7,035
  • As little as $1,760 per course
  • Savings up to 50% per course
Training Vouchers
  • Save as much as $1,080 per course
  • Fully transferable
  • As low as $2,895 per course
Exact savings may vary depending on courses selected.

Your Guarantee of Satisfaction

Unless you feel 100% satisfied that Learning Tree delivered even more than you expected, there is no fee for your course attendance. Our Guarantee of Quality lets you experience the value of the course—and then pay only if you feel the course was well worth the tuition.

Enrolling is Easy and Flexible!

Enrol by phone or online. If your plans change, just let us know and, without a fee, you can transfer to another course or cancel your enrolment. Pay after you've taken the course, and then only if you are 100% satisfied.

http://www.learningtree.ca/courses/534pf.htm