Time Series Analysis in PostgreSQL
Learn how to use PostgreSQL to handle time series analysis effectively and apply these techniques to real-world data.
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 times 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.
What You’ll Learn
Introduction to Date and Time Data in PostgreSQL
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!
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.
Working with Time Series
It’s time to get granular. In this chapter, you’ll learn how to set the granularity of your time series reports. You’ll then get to grips with adding, subtracting, and aggregating as you discover how to analyze time series data.
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.