Window Functions & Advanced SQL

Use SQL window functions for ranking, running totals and row comparisons.

IntermediateCertificate

New courseUpdated October 2026English

Part of Data Analyst with SQL & Power BI · Course 11 of 11

USD 18

Pay once for 3 months, or get every course with Yiga Plus from USD 10 a month.

Buy this course · USD 18
  • Pay with MTN MoMo, Airtel Money, M-Pesa or card
  • Learn on phone or laptop
  • Certificate of completion
  • Data saver for low data: words without sound, light pictures
Training 5 or more people? Get Yiga for Business

What you'll learn

  • Use OVER and PARTITION BY to define groups for window calculations.
  • Choose between RANK and ROW_NUMBER when handling tied values.
  • Calculate running totals with ordered window functions.
  • Apply LAG and LEAD to compare neighbouring records.
  • Control which rows contribute to a calculation using window frames.
  • Identify opportunities to optimise SQL queries.
  • Combine advanced SQL techniques in a graded project.

Skills you'll gain

This course includes

  • 4h 20m of video
  • 15 lessons
  • AI tutor
  • Certificate of completion
  • Learn on your phone or computer

Curriculum

4 modules · 15 lessons · 4h 20m total
  • Detail and totals together: your first OVER()15m
  • Groups inside the result: PARTITION BY15m
  • Running totals with ORDER BY15m
  • Ranking rows and handling ties20m

Projects

Graded project: Window Functions & Advanced SQL

Apply everything from Window Functions & Advanced SQL in one graded, portfolio ready build.

Requirements

  • Prior SQL knowledge is required: SELECT queries, filtering, joins and grouping.
  • A laptop or desktop with access to a SQL environment supporting window functions.
  • Internet access and permission to use the practice data; use non sensitive datasets.

Description

Window Functions & Advanced SQL is an intermediate course for learners who can already write SQL queries with filtering, joins and grouping. The title describes the techniques covered, not an expectation that you are already an advanced database specialist. It is suitable for analysts and developers building on SQL fundamentals. Explore RANK and ROW_NUMBER, running totals, and comparisons using LAG and LEAD. Practise choosing partitions and ordering rows so that a calculation reflects the question you intend to answer. Compare ranking behaviours and examine how a different ordering can change a running total or a previous row comparison. Worked examples and practice help you interpret the result as well as write the query. Bring these techniques together in the course project using a dataset you are authorised to analyse. Explain the logic behind each calculation and check the results against a simpler example. This course extends existing SQL skills; it does not teach SQL from the beginning or cover every aspect of database administration.

Who this course is for

  • Junior data analysts who already write basic SQL queries.
  • Reporting officers working with sales, operations or programme data.
  • Developers who need more detailed analysis from relational databases.
  • Students with SQL foundations preparing for data focused work.

Career outcomes

Frequently asked questions

Will I receive a certificate?

Yes. Window Functions & Advanced SQL ends with a Yiga certificate of completion. Finish every lesson and pass the final exam, and it appears under Certificates with a link anyone can use to check it is real.

How long will I have access to the course?

Check the access terms shown before enrolling. Contact support if the access period or any expiry conditions are unclear.

Can I study offline or with limited data?

Offline access depends on the platform features available for this course. Check for downloadable materials and low data options, and plan for internet access when completing online activities or submitting work.

Can I pay with MTN MoMo, Airtel Money, M-Pesa or a card?

Check checkout for the payment methods available in your country. Availability of MTN MoMo, Airtel Money, M-Pesa or card payments may vary; contact support if your preferred option is not listed.

How do I request a refund?

Contact support with your enrolment and payment details to ask about a refund.

Dashboard Design & Storytelling cover illustration

Dashboard Design & Storytelling

Build clear dashboards with purposeful layouts, colour choices, KPIs and executive summaries.

Yiga AI

CourseNew
14.1 total hours12 lessonsIntermediate
Introduction to Power BI cover illustration

Introduction to Power BI

Learn the Power BI interface, import data, build visuals and prepare reports for publishing.

Yiga AI

CourseNew
14 total hours25 lessonsBeginner
Introduction to SQL cover illustration

Introduction to SQL

Learn database basics and use SQL to select, filter and sort data.

Yiga AI

CourseNew
14 total hours25 lessonsBeginner

Window Functions & Advanced SQL

USD 18