Our website uses cookies. By using this website, you agree to their use in accordance with the browser settings. You can modify your browser settings on your own. For more information see our Privacy Policy.



Advanced SQL in PostgreSQL

Go beyond the basics and become a SQL master. Learn modern SQL features that let you write more complex and effective queries.

Start learning

21 free interactive coding challenges

Lifetime access


limited to this track only


Buy now

Want a better deal?


Get unlimited lifetime access to all 70 present and future courses

Save $440

Unlimited lifetime access


to all 70 present and future courses



73% OFF

Buy now

Interactive courses

38 h

Estimated time


Users enrolled



This learning path is for people who know some SQL and want to learn the language’s more advanced features and latest trends. Scroll down for details.

You want to improve your SQL skills. You already know the basics; now it's time to go to the next level. The Advanced SQL track will teach you the most up-to-date, efficient, and time-saving querying techniques.

Discover Window Functions that enable you to use aggregate functions without collapsing rows. Window functions (also called analytical functions or OVER() functions) let you rank data, compute running totals, and create reports with day-to-day or month-to-month deltas. Common Table Expressions make your code better organized and simpler to read. Recursive Queries allow you to process hierarchical data like trees and graphs using SQL. And advanced GROUP BY clauses like ROLLUP, CUBE, and GROUPING SETS add power and flexibility to your queries.

In other words, the Advanced SQL learning path will help you become a qualified programmer, data analyst, or DBA with fully modern skills.

What's in it for me?

  • The only fully interactive advanced SQL learning path on the internet. Three courses bring you the latest on SQL’s advanced features. Learn whenever and wherever you like.
  • Learn by doing. Get hands-on practice with our real code editor, real data sets, and real-life problem-solving.
  • Online certification. After successfully completing the course, you will receive a certificate that you can publish on your LinkedIn profile.
  • 30-day money-back guarantee. If you're not satisfied with this course, tell us within 30 days of purchase and you’ll get a full refund.
  • Trusted support system. Every course comes with access to our resource base, student2student support, mentor2student support, and technical support. You can also join our learning community and participate in on-task discussions.
  • Hints and more. If you get stuck, you can use the included exercise hints. Or use the Discuss tab to ask questions and share insights with other members of the LearnSQL community. You can also drop us a line at and we'll be more than happy to help!


  • Understand and apply window functions, which make writing complex queries easy.
  • Learn when and how to use different ranking functions (RANK(), DENSE_RANK(), ROW_NUMBER()) to compute ranking reports in SQL.
  • Compute running totals and running (cumulative) sums.
  • Write complex reports using GROUP BY and CASE WHEN.
  • Differentiate and use ROLLUP, CUBE, and GROUPING SETS operations.
  • Use Common Table Expressions to organize a long SQL query.
  • Create recursive SQL queries to process hierarchical data structures, such as trees and charts.

Who should take this learning path?

  • Programmers, DBAs, and analysts who want to keep their knowledge of SQL up to date.
  • Programmers who want to expand their knowledge and skills beyond what is usually found in online courses and books.
  • Anyone who knows fundamental SQL and wants to learn the language’s advanced features.


  • A web browser
  • An internet connection
  • Basic knowledge of SQL (e.g. you’ve completed our SQL Basics course)

Track courses

1 0%

Coding challenges




Window Functions in PostgreSQL

A window function is an advanced SQL concept that enables you to maximize efficiency and minimize the complexity of queries that analyze partitions (windows), subgroups or sections of a data set. In this online course, you'll learn how to build complex aggregations with PostgreSQL window functions: OVER, RANK, PARTITION BY. Note: This is the only online course on PostgreSQL window functions you can find on the Internet.

2 0%

Coding challenges




Recursive Queries in PostgreSQL

In this online course, you will master PostgreSQL recursive queries, also known as WITH clauses, and common table expressions (CTEs).


Reviews (16)

Average rating



3439 ratings


5 stars


4 stars


3 stars


2 stars


1 stars