Writing Advanced SQL Queries Training

Level: Advanced
Rating: 4.7/5 4.71/5 Based on 254 Reviews

SQL is the cornerstone of all relational database operations. With this training, 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. It also teaches alternative solutions to given problems, enabling you to choose the most efficient solution in each situation.

The SQL language is an ANSI/ISO standard language used by all relational database products. This training describes the standard language, but also identifies deviations from the standard in two widely-used database products: Oracle and Microsoft SQL Server. For the hands-on exercises, the lab environment allows the students to choose between working with the PostgreSQL database product or Microsoft SQL Server.

Key Features of this Training

  • Choose from blended on-demand and instructor-led learning options
  • Exclusive LinkedIn group membership for peer and SME community support
  • After-course instructor coaching benefit
  • Learning Tree end-of-course exam included
  • After-course computing sandbox included

You Will Learn How To

  • Maximize the potential of SQL to build powerful, complex and robust SQL queries
  • Query multiple tables with inner joins, outer joins and self joins
  • Construct recursive common table expressions
  • Summarize data using aggregation and grouping
  • Execute analytic functions to calculate ranks
  • Build simple and correlated subqueries
  • Thoroughly test SQL queries to avoid common errors
  • Select the most efficient solution to complex SQL problems

Choose the Training Solution That Best Fits Your Individual Needs or Organizational Goals

BLENDED LEARNING

On-Demand & Live Review Session

Unlimited annual access to:

  • Library of on-demand courses
  • 1-day instructor-led training course
  • Pre-configured practice labs
  • Practice exams, flashcards, and performance tracker
View Bundle Details & Schedule

Standard $1415/ Year

Government $1415/Year

ADD TO CART

PRODUCT #70G9

LIVE, INSTRUCTOR-LED

In Class & Live, Online Training

  • 3-day instructor-led training course
  • One-on-one after-course instructor coaching
  • Learning Tree end-of-course exam included
  • After-course computing sandbox included
View Course Details & Schedule

Standard $2745

Government $2415

RESERVE SEAT

PRODUCT #929

PREMIUM TRAINING

Unlimited Access to Everything

Unlimited annual access to:

  • Library of on-demand courses
  • 3-day instructor-led training course 
  • Pre-configured practice labs
  • Practice exams, flashcards, and performance tracker
  • One-on-one after-course instructor coaching
  • Learning Tree end-of-course exam included
  • After-course computing sandbox included
View Bundle Details & Schedule

Standard $3835/Year

Government $3835/Year

ADD TO CART

PRODUCT #70H0

TRAINING AT YOUR SITE

Team Training

  • Bring this or any training to your organization
  • Full - scale program development
  • Delivered when, where, and how you want it
  • Blended learning models
  • Tailored content
  • Expert team coaching

Customize Your Team Training Experience

CONTACT US

Save More On Training with FlexVouchers – A Unique Training Savings Account

Our FlexVouchers help you lock in your training budgets without having to commit to a traditional 1 voucher = 1 course classroom-only attendance. FlexVouchers expand your purchasing power to modern blended solutions and services that are completely customizable. For details, please call 888-843-8733 or chat live.

On-Demand & Live Review Session

Advanced SQL Blended Training Information

This product offers access to a library of Microsoft on-demand courses including SQL, Windows, Exchange, and more. At any time during your annual access to this offering, you may attend one of our 1-day review sessions focused specifically on Powerful SQL Queries for SQL Server (4559).

On-Demand Training Outline

  • On-Demand Course List

    • MTA - Windows Operating System Fundamentals (Exam 98-349)
    • MTA - Network Fundamentals (Exam 98-366)
    • MTA - Windows Server Fundamentals (Exam 98-365)
    • MTA - Security Fundamentals (Exam 98-367)
    • MTA - Cloud Fundamentals (Exam 98-369)
    • MCSA Windows 7 - Windows 7, Configuring (Exam 70-680)
    • MCSA Windows 10 - Configuring Windows Devices (Exam 70-697)
    • MCSA Windows 10 - Installing and Configuring Windows 10 (Exam 70-698)
    • MCSA Windows Server 2012 - Installing and Configuring (Exam 70-410)
    • MCSA Windows Server 2012 - Administering (Exam 70-411)
    • MCSA Windows Server 2012 - Configuring Advanced Services (Exam 70-412)
    • MCSE Windows Server 2012 - Designing and Implementing a Server Infrastructure (Exam 70-413)
    • MCSE Windows Server 2012 - Implementing an Advanced Server Infrastructure (Exam 70-414)
    • Microsoft SQL Server 2012 - Administering Microsoft SQL Server 2012 Databases (Exam 70-462)
    • Microsoft SQL Server 2014 - Querying Microsoft SQL Server 2014 (Exam 70-461)
    • Microsoft SQL Server 2016 - Querying Data with Transact-SQL (Exam 70-461)
    • MCSA Windows Server 2016 -- Installation, Storage, and Compute (Exam 70-740)
    • MCSA Windows Server 2016 - Networking (Exam 70-741)
    • MCSA Windows Server 2016 - Identity (Exam 70-742)
    • MCSE Windows Serve 2016 - Securing Windows Server 2016 (Exam 70-744)
    • Microsoft Exchange 2013 (Exam 74-341)
    • Microsoft Exchange Server 2016 (Exam 74-345)
    • Microsoft Project 2013 (Exam 74-343)
    • Microsoft Office 365 (Exam 70-346)
    • Microsoft Office 365 (Exam 70-347)
    • System Center 2012 Configuration Manager (Exam 74-243)
    • Data Center Managing with SCOM
    • MCSE Private Cloud - 70-246
    • vMCSE Private Cloud - 70-247
    • SharePoint - Core Technologies of Microsoft SharePoint 2016 (Exam70-339)
    • Advanced SharePoint - Advanced Technologies (Exam 70-339)
    • Implementing Microsoft Azure Infrastructure (Exam 70-533)
    • Architecting Microsoft Azure Solutions (Exam 70-535)

Advanced SQL FAQs

  • What background do I need?

    This is an advanced course and knowledge of the basics of SQL at the level of Introduction to SQL Programming Training or equivalent is assumed.

  • Is the on-demand content the same as the 3-day instructor class?

    No. While many of the same points are covered, taking the instructor-led Writing Advanced SQL Queries course provides the deepest dive into that area. This offering is indented for those who wish to gain a broad knowledge of the topics described in the course outline above - including SQL.

  • What on-demand content will I receive?

    An outline of the content you will receive can be seen above. You will also get access to any new on-demand content that becomes available during your annual enrolment period.

  • How many labs will I receive?

    You will get access 19 pre-configured lab bundles spanning the Microsoft curriculum.

  • How many practice exams will I have access to?

    17 practice exams spanning the Microsoft curriculum are included

  • How will I access my course materials if I choose this method?

    Once payment is received, you will receive an email from Learning Tree with all the links and information you need to get started.

  • How can I sign up for a review session?

    Once you are enrolled in the program, specific details and dates will be sent to you.

One Day Instructor-Led Review

You'll be able to register for a Training Review Session at any time after you've placed your order.

  • May 29 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Jul 29 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Oct 8 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Nov 18 (1 Day)
    9:00 AM - 4:30 PM EST
    Online (AnyWare) Online (AnyWare)
  • Feb 3 (1 Day)
    9:00 AM - 4:30 PM EST
    Online (AnyWare) Online (AnyWare)
  • Mar 26 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)

In Class & Live, Online Training

  • May 22 - 24 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Rockville, MD / Online (AnyWare) Rockville, MD / Online (AnyWare) Reserve Your Seat

  • Jun 19 - 21 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    New York / Online (AnyWare) New York / Online (AnyWare) Reserve Your Seat

  • Jul 10 - 12 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Ottawa / Online (AnyWare) Ottawa / Online (AnyWare) Reserve Your Seat

  • Jul 24 - 26 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare) Reserve Your Seat

  • Aug 7 - 9 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Toronto / Online (AnyWare) Toronto / Online (AnyWare) Reserve Your Seat

  • Sep 18 - 20 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    New York / Online (AnyWare) New York / Online (AnyWare) Reserve Your Seat

  • Oct 16 - 18 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Alexandria, VA / Online (AnyWare) Alexandria, VA / Online (AnyWare) Reserve Your Seat

  • Nov 13 - 15 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Rockville, MD / Online (AnyWare) Rockville, MD / Online (AnyWare) Reserve Your Seat

  • Jan 8 - 10 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Ottawa / Online (AnyWare) Ottawa / Online (AnyWare) Reserve Your Seat

  • Feb 12 - 14 ( 3 Days)
    8:00 AM - 4:30 PM EST
    New York / Online (AnyWare) New York / Online (AnyWare) Reserve Your Seat

  • Mar 4 - 6 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Toronto / Online (AnyWare) Toronto / Online (AnyWare) Reserve Your Seat

  • Mar 25 - 27 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare) Reserve Your Seat

Guaranteed to Run

When you see the "Guaranteed to Run" icon next to a course event, you can rest assured that your course event — date, time, location — will run. Guaranteed.

Advanced SQL Important Course Information

This product offers access to a library of Microsoft on-demand courses including SQL, Windows, Exchange, and more. At any time during your annual access to this offering, you may attend one of our 1-day review sessions focused specifically on Powerful SQL Queries for SQL Server (4559).

Advanced SQL Course Outline

  • Introduction and Overview

    SQL fundamentals

    • Why SQL can be both easy and difficult
    • Recommendations for thorough testing

    Retrieving data with SELECT

    • Expressions
    • Literals
    • Handling NULLs properly

    Executing queries

    • Analyzing query plans
    • Enhancing query performance
    • Retrieving partly results with FETCH and OFFSET
    • 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
  • Aggregate Functions

    Summarizing data with aggregate functions

    • COUNT
    • SUM
    • AVG
    • MIN
    • MAX
    • Managing NULLs
    • identifying duplicates

    Grouping data

    • GROUP B
    • Applying conditions with HAVING
    • Calculating moving averages
    • Building crosstab reports

    Extending group queries

    • Nesting grouped aggregates
    • Joins and grouping
    • Introducing subtotals with CUBE and ROLLUP
  • 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
    • Top-N queries
    • Defining sliding window boundaries
  • Building Subqueries

    Self-contained subqueries

    • Subqueries in conditions and column expressions
    • Creating multilevel subqueries
    • Avoiding problems when subqueries return NULLs
    • Handling multirow subquery results
    • Finding gaps in number series

    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

Advanced SQL FAQs

  • Which SQL Language will be used in this Advanced SQL Queries course?

    The SQL Language is an ANSI/ISO standard language used by all relational database products.

  • Which database product will I use for the hands-on exercises?

    For the hands-on exercises, you will choose between working with the PostgreSQL database product or Microsoft SQL Server.

  • Can I learn to write advanced sql queries online?

    Yes! We know your busy work schedule may prevent you from getting to one of our classrooms which is why we offer convenient online training to meet your needs wherever you want, including online training.

Unlimited Access to Everything

  • May 22 - 24 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Rockville, MD / Online (AnyWare) Rockville, MD / Online (AnyWare)

  • Jun 19 - 21 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    New York / Online (AnyWare) New York / Online (AnyWare)

  • Jul 10 - 12 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Ottawa / Online (AnyWare) Ottawa / Online (AnyWare)

  • Jul 24 - 26 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare)

  • Aug 7 - 9 ( 3 Days)
    9:00 AM - 4:30 PM EDT
    Toronto / Online (AnyWare) Toronto / Online (AnyWare)

  • Sep 18 - 20 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    New York / Online (AnyWare) New York / Online (AnyWare)

  • Oct 16 - 18 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Alexandria, VA / Online (AnyWare) Alexandria, VA / Online (AnyWare)

  • Nov 13 - 15 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Rockville, MD / Online (AnyWare) Rockville, MD / Online (AnyWare)

  • Jan 8 - 10 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Ottawa / Online (AnyWare) Ottawa / Online (AnyWare)

  • Feb 12 - 14 ( 3 Days)
    8:00 AM - 4:30 PM EST
    New York / Online (AnyWare) New York / Online (AnyWare)

  • Mar 4 - 6 ( 3 Days)
    9:00 AM - 4:30 PM EST
    Toronto / Online (AnyWare) Toronto / Online (AnyWare)

  • Mar 25 - 27 ( 3 Days)
    8:00 AM - 4:30 PM EDT
    Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare)

Guaranteed to Run

When you see the "Guaranteed to Run" icon next to a course event, you can rest assured that your course event — date, time, location — will run. Guaranteed.

Advanced SQL Unlimited Access Blended Training Information

This product offers access to a library of Microsoft on-demand courses including SQL, Windows, Exchange, and more. At any time during your annual access to this offering, you may attend one of our 1-day review sessions focused specifically on Powerful SQL Queries for SQL Server (4559). Enrolling in this bundle also grants you access to any of our multi-day Writing Advanced SQL Queries (929) course events.

On-Demand Training Outline

  • On-Demand Course List

    • MTA - Windows Operating System Fundamentals (Exam 98-349)
    • MTA - Network Fundamentals (Exam 98-366)
    • MTA - Windows Server Fundamentals (Exam 98-365)
    • MTA - Security Fundamentals (Exam 98-367)
    • MTA - Cloud Fundamentals (Exam 98-369)
    • MCSA Windows 7 - Windows 7, Configuring (Exam 70-680)
    • MCSA Windows 10 - Configuring Windows Devices (Exam 70-697)
    • MCSA Windows 10 - Installing and Configuring Windows 10 (Exam 70-698)
    • MCSA Windows Server 2012 - Installing and Configuring (Exam 70-410)
    • MCSA Windows Server 2012 - Administering (Exam 70-411)
    • MCSA Windows Server 2012 - Configuring Advanced Services (Exam 70-412)
    • MCSE Windows Server 2012 - Designing and Implementing a Server Infrastructure (Exam 70-413)
    • MCSE Windows Server 2012 - Implementing an Advanced Server Infrastructure (Exam 70-414)
    • Microsoft SQL Server 2012 - Administering Microsoft SQL Server 2012 Databases (Exam 70-462)
    • Microsoft SQL Server 2014 - Querying Microsoft SQL Server 2014 (Exam 70-461)
    • Microsoft SQL Server 2016 - Querying Data with Transact-SQL (Exam 70-461)
    • MCSA Windows Server 2016 -- Installation, Storage, and Compute (Exam 70-740)
    • MCSA Windows Server 2016 - Networking (Exam 70-741)
    • MCSA Windows Server 2016 - Identity (Exam 70-742)
    • MCSE Windows Serve 2016 - Securing Windows Server 2016 (Exam 70-744)
    • Microsoft Exchange 2013 (Exam 74-341)
    • Microsoft Exchange Server 2016 (Exam 74-345)
    • Microsoft Project 2013 (Exam 74-343)
    • Microsoft Office 365 (Exam 70-346)
    • Microsoft Office 365 (Exam 70-347)
    • System Center 2012 Configuration Manager (Exam 74-243)
    • Data Center Managing with SCOM
    • MCSE Private Cloud - 70-246
    • vMCSE Private Cloud - 70-247
    • SharePoint - Core Technologies of Microsoft SharePoint 2016 (Exam70-339)
    • Advanced SharePoint - Advanced Technologies (Exam 70-339)
    • Implementing Microsoft Azure Infrastructure (Exam 70-533)
    • Architecting Microsoft Azure Solutions (Exam 70-535)

Advanced SQL FAQs

  • What background do I need?

    This is an advanced course and knowledge of the basics of SQL at the level of Introduction to SQL Programming Training or equivalent is assumed.

  • Is the on-demand content the same as the 3-day instructor class?

    No. While many of the same points are covered, taking the instructor-led Writing Advanced SQL Queries course provides the deepest dive into that area. This offering is indented for those who wish to gain a broad knowledge of the topics described in the course outline above - including SQL.

  • What on-demand content will I receive?

    An outline of the content you will receive can be seen above. You will also get access to any new on-demand content that becomes available during your annual enrolment period.

  • How many labs will I receive?

    You will get access 19 pre-configured lab bundles spanning the Microsoft curriculum.

  • How many practice exams will I have access to?

    17 practice exams spanning the Microsoft curriculum are included

  • How will I access my course materials if I choose this method?

    Once payment is received, you will receive an email from Learning Tree with all the links and information you need to get started.

  • How can I sign up for a review session?

    Once you are enrolled in the program, specific details and dates will be sent to you.

One Day Instructor-Led Review

You'll be able to register for a Training Review Session at any time after you've placed your order.

  • May 29 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Jul 29 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Oct 8 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)
  • Nov 18 (1 Day)
    9:00 AM - 4:30 PM EST
    Online (AnyWare) Online (AnyWare)
  • Feb 3 (1 Day)
    9:00 AM - 4:30 PM EST
    Online (AnyWare) Online (AnyWare)
  • Mar 26 (1 Day)
    9:00 AM - 4:30 PM EDT
    Online (AnyWare) Online (AnyWare)

Team Training

Questions about which training is right for you?

call 888-843-8733
chat Live Chat




100% Satisfaction Guaranteed

Your Training Comes with a 100% Satisfaction Guarantee!*

  • If you are not 100 % satisfied, you pay no tuition!
  • No advance payment required for most products.
  • Tuition can be paid later by invoice - OR - at the time of checkout by credit card.

*Partner-delivered courses may have different terms that apply. Ask for details.

Rockville, MD / Online (AnyWare)
New York / Online (AnyWare)
Ottawa / Online (AnyWare)
Herndon, VA / Online (AnyWare)
Toronto / Online (AnyWare)
New York / Online (AnyWare)
Alexandria, VA / Online (AnyWare)
Rockville, MD / Online (AnyWare)
Ottawa / Online (AnyWare)
New York / Online (AnyWare)
Toronto / Online (AnyWare)
Herndon, VA / Online (AnyWare)
Preferred method of contact:
Chat Now

Please Choose a Language

Canada - English

Canada - Français