Type to search LearningTree.com

Do you mean "{{response.correctedQuery}}" ?

Sorry, no results were found for your query.

Please check your spelling and try your search again.

 

SQL Server









Preferred method of contact?

Developing SQL Queries for SQL Server

COURSE TYPE

Hands-On

Course Number

534

Duration

4 Days

Enroll

About This Course: 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.

You Will Learn How To

  • Develop complex and robust SQL queries, test queries and avoid common pitfalls
  • Leverage SQL to apply best practices for solving problems
  • Query multiple tables with inner joins, outer joins and self-joins
  • Transform data with built-in functions
  • Summarize data using aggregation and grouping

Course Outline

  • Introduction and Overview

SQL fundamentals

  • Retrieving data with SELECT
  • Expressions
  • Literals
  • Handling NULLs properly

Executing queries

  • Analyzing query plans
  • Enhancing query performance
  • 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
  • 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
  • Performing calculations on dates and times
  • Extracting date and time components
  • 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

Extending group queries

  • Nesting grouped aggregates
  • Joins and grouping

Building crosstab reports

  • Using CASE to turn rows into columns
  • Applying PIVOT
  • Performing 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

Correlated subqueries

  • Accessing values from the outer query
  • 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
Show complete outline
Show less

Send to a Colleague or Manager

Course Schedule

Attend this live, instructor-led course In-Class or Online via AnyWare.

Hassle-Free Enrollment: No advance payment required.
Tuition due 30 days after your course. No fees for rescheduling or canceling your course.

Aug 2 - 5 Rockville, MD/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Aug 30 - Sep 2 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Sep 13 - 16 Toronto/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Sep 27 - 30 Herndon, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Oct 18 - 21 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Oct 25 - 28 Ottawa/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Nov 7 - 10 Toronto/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Nov 29 - Dec 2 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Dec 6 - 9 Herndon, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Dec 13 - 16 Ottawa/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Dec 19 - 22 Alexandria, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Jan 10 - 13 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Jan 31 - Feb 3 Rockville, MD/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Feb 14 - 17 Ottawa/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Feb 21 - 24 Toronto/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Feb 28 - Mar 3 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Mar 28 - 31 Herndon, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Apr 11 - 14 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

May 2 - 5 Ottawa/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

May 16 - 19 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

May 23 - 26 Toronto/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Jun 6 - 9 Alexandria, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Jul 11 - 14 Herndon, VA/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Jul 25 - 28 New York/AnyWare Enroll Now

How would you like to attend?

Live, Online via Anyware
In-Class

Guaranteed to Run

Show all dates
Show fewer dates

Bring this Course to Your Organization and Train Your Entire Team
For more information, call 1-888-843-8733 or click here

Tuition

Standard

$2990

Government

$2659

Course Tuition Includes:

After-Course Instructor Coaching
When you return to work, you are entitled to schedule a free coaching session with your instructor for help and guidance as you apply your new skills.

Free Course Exam
You can take your course exam on the last day of your course and receive a Certificate of Achievement with the designation "Awarded with Distinction."

Prev
Next

Questions

Call 1-888-843-8733 or click here »

An experienced training advisor will happily answer any questions you may have and alert you to any tuition savings to
which you or your organization may be entitled.

Training Hours

Standard Course Hours:  9:00 am – 4:30 pm


FREE Online Course Exam (if applicable) – Last Day:  3:30 pm – 4:30 pm


By successfully completing your FREE online course exam, you will:  

  • Make progress toward earning one or more Learning Tree Specialist & Expert Certifications.
  • Earn College Credit Units — Many Learning Tree courses are recommended for College Credits, which are accepted by over 2,000 colleges and universities, and may qualify you to receive Tuition Reimbursement.
  • Receive a Certificate of Achievement with the designation "Awarded with Distinction."

Each Course Day - Informal discussion with instructor about your projects or areas of special interest:  4:30 pm – 5:30 pm

Enhance Your Credentials with Professional Certification

Learning Tree's comprehensive training and exam preparation guarantees that you will gain the knowledge and confidence to achieve professional certification and advance your career.

This course qualifies for 23 CPE credits from the National Association of State Boards of Accountancy CPE program. Read More...

“The Learning Tree SQL Queries course was well developed and covered the course material in great technical detail.”

- T. Walton III, IT Specialist
Department of Agriculture

Prev
Next