Writing Advanced SQL Queries Training

Course 929

  • Duration: 3 days
  • Labs: Yes
  • Language: English
  • Level: Advanced
Get This Course £1,695
  • Library of on-demand courses
  • 1-day instructor-led training course
  • 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
#70H0

SQL is the cornerstone of all relational database operations. In this hands-on Writing Advanced SQL Queries course, you will learn how 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.

Attend this Writing Advanced SQL Queries training in one of three formats - live, instructor-led, on-demand or a blended on-demand/instructor-led version.

Writing Advanced SQL Queries Delivery Methods

  • In-Person

  • Online

  • Blended Learning

Writing Advanced SQL Queries Training Course Benefits

  • 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

Advanced SQL Queries Course Outline

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

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

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

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

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
  • Overcoming SQL limitations
  • Reducing complexity and improving performance

Advanced SQL Queries Training Bundle

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 Writing Powerful SQL Queries for SQL Server.

Unlimited Access Advanced SQL Queries Premium Blended Training

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 Writing Powerful SQL Queries for SQL Server. Enrolling in this bundle also grants you access to any of our multi-day Writing Advanced SQL Queries Training course events.

Once payment is received, you will receive details for your Unlimited Access Training Bundle via email. At that time, you may call or email our customer service team for assistance in enrolling in the event date of your choice.

Need Help Finding The Right Training Solution?

Our training advisors are here for you.

Writing Advanced SQL Queries FAQs

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.

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.

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 enrollment period.

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

17 practice exams spanning the Microsoft curriculum are included

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

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

Once payment is received, you will receive details for your Unlimited Access Training Bundle via email. At that time, you may call or email our customer service team for assistance in enrolling in the event date of your choice.

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

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

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.