Skip to main content
HomeSQLTime Series Analysis in SQL Server

Time Series Analysis in SQL Server

Explore ways to work with date and time data in SQL Server for time series analysis

Start Course for Free
5 Hours16 Videos60 Exercises
26,391 LearnersTrophyStatement of Accomplishment

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.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Course Description

SQL Server has a robust set of tools to prepare, aggregate, and query time series data. This course will show you how to build and work with dates, parse dates from strings (and deal with invalid strings), and format dates for reporting. From there, you will see how SQL Server's built-in aggregation operators and window functions can solve important business problems like calculating running totals, finding moving averages, and displaying month-over-month differences using realistic sample data sets. You will also see how taking a different perspective on your data can solve difficult problems.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

SQL Server Developer

Go To Track

SQL Server Fundamentals

Go To Track
  1. 1

    Working with Dates and Times

    Free

    This chapter covers date and time functionality in SQL Server, including building dates from component parts, formatting dates for reporting, and working with calendar tables.

    Play Chapter Now
    Building dates
    50 xp
    Break out a date into year, month, and day
    100 xp
    Break a date and time into component parts
    100 xp
    Date math and leap years
    100 xp
    Rounding dates
    100 xp
    Formatting dates for reporting
    50 xp
    Formatting dates with CAST() and CONVERT()
    100 xp
    Formatting dates with FORMAT()
    100 xp
    Working with calendar tables
    50 xp
    The benefits of calendar tables
    50 xp
    Try out a calendar table
    100 xp
    Joining to a calendar table
    100 xp
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

In the following Tracks

SQL Server Developer

Go To Track

SQL Server Fundamentals

Go To Track

Datasets

CalendarDay Spa RollupDay Spa VisitIncident RollupIncident TypeImported Time

Collaborators

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Mona Khalil
Maham Khan HeadshotMaham Khan

Senior Data Scientist, YouView TV

Maham is a Data Scientist on a mission to make data skills accessible for everyone. She's worked on creating toolkits and exploring experimental applications of data science for urban analytics, disaster risk management, and climate change mitigation at the World Bank. She has a background in Experimental Psychology and Philosophy from the University of Oxford and Urban Data Science from NYU.
See More

What do other learners have to say?

Join over 13 million learners and start Time Series Analysis in SQL Server 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.