Subquery Magic: Write awesome SQL, Master T-SQL Sub Queries

What you’ll learn

  • Write subqueries and use them in various parts of a query, such as the FROM, WHERE, and HAVING clauses.
  • Gain the confidence to know when and how to use a sub query.
  • Solve problems, otherwise impossible to solve using SQL alone, using sub queries.
  • Solve complex problems, such as incorporating one query’s results, into another’s filter criteria.
  • How to write a correlated subquery (this is a big deal)


  • You should already be familiar with SELECT, GROUP BY, and ORDER BY clauses
  • If you can write a simple select statement, then you’re ready for this course!
  • No special equipment needed, all exercises are done online.
  • Optional: Install a MySQL, PostgreSQL, or SQL Server learning lab on your own computer.


In this Course you will Learn to: Subquery Magic: Write awesome SQL, Master T-SQL Sub Queries

  • Know and understand subqueries
  • Identify subqueries in SQL
  • Use subqueries in  your select statement
  • Use subqueries in the WHERE clause with EXISTS and IN
  • Use subqueries with SUM, MAX and other Aggregate functions in GROUP BY and HAVING
  • Write correlated subqueries (this is a big deal)

Nothing is worse than

  • Being excited to learn something new but not knowing where to start.
  • Wasting time learning the wrong features.
  • Being overwhelmed with options and not know which to use.

Imagine Having…

  • Knowledge – Knowing how to quickly use subqueries to take your SQL to the next level.
  • Confidence – Feeling good that you’re on the right track.
  • Accomplishment – Having a sense of accomplishment that you’ve learned something most can not.
  • Fun – Actually having fun learning SQL subqueries!

By the time you’ve completed this course you’ll have an appreciation of subqueries, overcome your fear, and able to write correlated queries to make your SQL more robust.   

Who this course is for:

  • Beginner SQL query authors curious about subqueries.
  • If you’re struck writing subqueries or baffled by correlated subqueries, then this course is for you!
  • Business analysts looking more ways to write queries
  • Recent college graduates looking to hone their SQL skills

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button


Turn off the ad blocker