Skip to main content
HomeSQL

Time Series Analysis in PostgreSQL

Learn how to use PostgreSQL to handle time series analysis effectively and apply these techniques to real-world data.

Start Course for Free
4 hours14 videos46 exercises

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.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

This course teaches you how to leverage PostgreSQL to handle date and time data. You'll learn about functions and calls to help you parse through and manipulate this data, make calculations, and use window functions.

Work with time series data



You’ll learn about various date and time data types and how to convert between them, manipulate their granularity, and perform calculations, including aggregations, partitioning, and running averages. These insights will help you add value to existing time series data.

Apply time series analysis to real-world data



You'll apply these techniques to real-world data to analyze temperatures, look at train schedules, and review how the popularity of news articles can change over time.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Introduction to Date and Time Data in PostgreSQL

    Free

    In this chapter, you’ll be introduced to date and time data types. You’ll learn how to convert text and numeric data to date and time format—and how to convert the other way around too!

    Play Chapter Now
    Introduction to date and time data types
    50 xp
    PostgreSQL data types
    50 xp
    INSERT time INTO table
    100 xp
    Working with time zone information
    50 xp
    Find the time zones
    100 xp
    Convert to a different time zone
    100 xp
    Converting between date, time, and text
    50 xp
    Casting dates
    100 xp
    Converting dates
    100 xp
    Converting date and times
    100 xp
  2. 3

    Using Window Functions to Analyze Time Series Data

    In this chapter, you’ll work with window functions. You'll begin learning about partitions and partitioning and how they work with window functions. You'll be able to find the top items when ranking your data.

    Play Chapter Now
  3. 4

    Calculating Running Totals and Moving Averages

    In the final chapter, you’ll level up your skills by calculating the running total, running average, and even moving average to enhance your time series analysis.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

collaborators

Collaborator's avatar
Mark Plutowski
Collaborator's avatar
Izzy Weber

prerequisites

Joining Data in SQL
Jasmin Ludolf HeadshotJasmin Ludolf

Data Science Content Developer, DataCamp

Jasmin is a Content Developer at DataCamp. After ten years as a global marketing manager in the music industry, she recently changed careers to follow her curiosity for data. Her passion is value exchange and making data science accessible to all.
See More

What do other learners have to say?

Join over 15 million learners and start Time Series Analysis in PostgreSQL today!

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.