Learning Tree International

SQL Server Training

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

Request Info

Salutation

First Name

Last Name

Job Title

Department

Mailstop

Company

Address

P.O. Box

City

Province

Postal Code

Country
List

Work Telephone

Ext.

E-mail Address

A representative will contact you to follow up your request.

Privacy Statement

 
Save up to $900 per course with Training Vouchers

 

Developing SQL Queries for SQL Server®:
Hands-On


Course 5344 Days

  E-mail   Print   Q&A   PDF   Facebook   Twitter

Quick Enrol

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

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 and GROUPING SETS
  • 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

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 variables

<< Back to SQL Server Course List
 

Related Courses


SQL Server is a registered trademark of Microsoft Corporation.
 
Developing SQL Queries for SQL Server: Hands-On
Hands-On Training

Course Dates

Oct 26 - 29Ottawa enrol
Nov 23 - 26Toronto enrol
Feb 22 - 25Ottawa enrol
Mar 22 - 25Toronto enrol
Jun 21 - 24Ottawa enrol
Jul 19 - 22Toronto enrol

US Dates

Oct 12 - 15Chicago (Schaumburg) enrol
Nov 2 - 5New York enrol
Nov 9 - 12Rockville, MD enrol
Dec 7 - 10Los Angeles enrol
Live online classroom training.

Attend highlighted events
in person or online with Learning Tree AnyWareTM.

More Dates and Locations.

On-Site &
Custom Training

Bring this or any Learning Tree course to your location or have it customized for your organization.

Tuition

$ 3,095 Standard Tuition
Tuition with a Savings Plan
$ 1,800Flex-Training Pass
$ 1,800Multi-Course Passport
$ 2,650Voucher 5-Pack
$ 2,785Alumni Gold Discount
$ 2,660Government Discount
 
Developing SQL Queries for SQL Server: Hands-On

Course participants building correlated subqueries.


The most recent 100 evaluations scored this course:

  (3.77/4.00)

 
"The Learning Tree Course was really the best I'd taken anywhere in over a decade. Everything was top-notch and the course exceeded my expectations. Hats off to Learning Tree—you really know what you're doing!"

– P. Milewski
Bruce Power

 
What's in It for You: Exploring the Benefits of the SQL Server 2008 Database Engine

Certification Core Course