Skip to main content
HomeSQLPostgreSQL Summary Stats and Window Functions

PostgreSQL Summary Stats and Window Functions

Learn how to create queries for analytics and data engineering with window functions, the SQL secret weapon!

Comece O Curso Gratuitamente
4 Horas12 Videos44 Exercicios
71.404 AprendizesTrophyDeclaração de Realização

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTreinar 2 ou mais pessoas?Experimente o DataCamp For Business

Loved by learners at thousands of companies


Descrição do Curso

Have you ever wondered how data professionals use SQL to solve real-world business problems, like generating rankings, calculating moving averages and running totals, deduplicating data, or performing time intelligence? If you already know how to select, filter, order, join and group data with SQL, this course is your next step. By the end, you will be writing queries like a pro! You will learn how to create queries for analytics and data engineering with window functions, the SQL secret weapon! Using flights data, you will discover how simple it is to use window functions, and how flexible and efficient they are.
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados
Experimente O DataCamp for BusinessPara uma solução sob medida , agende uma demonstração.

Nas seguintes faixas

Certificação disponível

Fundamentos de SQL

Ir para a trilha
Certificação disponível

Analista de dados associado em SQL

Ir para a trilha
  1. 1

    Introduction to window functions

    Grátis

    In this chapter, you'll learn what window functions are, and the two basic window function subclauses, ORDER BY and PARTITION BY.

    Reproduzir Capítulo Agora
    Introduction
    50 xp
    Window functions vs GROUP BY
    50 xp
    Numbering rows
    100 xp
    Numbering Olympic games in ascending order
    100 xp
    ORDER BY
    50 xp
    Numbering Olympic games in descending order
    100 xp
    Numbering Olympic athletes by medals earned
    100 xp
    Reigning weightlifting champions
    100 xp
    PARTITION BY
    50 xp
    Reigning champions by gender
    100 xp
    Reigning champions by gender and event
    100 xp
    Row numbers with partitioning
    50 xp
  2. 2

    Fetching, ranking, and paging

    In this chapter, you'll learn three practical applications of window functions: fetching values from different parts of the table, ranking rows according to their values, and binning rows into different tables.

    Reproduzir Capítulo Agora
  3. 4

    Beyond window functions

    In this last chapter, you'll learn some techniques and functions that are useful when used together with window functions.

    Reproduzir Capítulo Agora
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados

Nas seguintes faixas

Certificação disponível

Fundamentos de SQL

Ir para a trilha
Certificação disponível

Analista de dados associado em SQL

Ir para a trilha

Conjuntos De Dados

Summer olympics dataset

Colaboradores

Collaborator's avatar
Mona Khalil
Collaborator's avatar
Sumedh Panchadhar
Collaborator's avatar
Marianna Lamnina
Michel Semaan HeadshotMichel Semaan

Data Scientist

Veja Mais

O que os outros alunos têm a dizer?

Cadastre-se mais 13 milhões de alunos e comece PostgreSQL Summary Stats and Window Functions Hoje!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.