Actionable Data Analytics
Join Our Email List for Data News Sent to Your Inbox

Adventure Works Database with Data from 2020

In this blog post, you’ll find an Adventure Works DW database version with up-to-date data you can use to create demos, practice, and learn. 

Download the Database

Download the backup for the Adventure Works database with data from 2020 from the following link: 

GitHub Link (there is a backup for SQL Server 2019 and one for SQL Server 2016)

I’ve always used the Adventure Works DW database for demos and as a reference because it gives you a lot of good artefacts to explain different Data Warehouse component.

You can also easily build reports using non-real information that make sense to your clients.  

Additionally, you can use it for studying and learning. 

Updating the Database

The data available in the database is outdated. Microsoft hasn’t continued adding more recent data. The maximum date in one of the fact tables was from January 2014, so I decided to run a few scripts to update the data.

Creating this new version of the database wasn’t difficult at all. I just updated the existing information to be more recent! So, if the date is 2014, add a few years… and convert it to 2020.  

I had to delete some foreign keys to facilitate the modifications and compress some tables to be able to publish into Github (let me know if you have any issues). 

Of course, you need to avoid some other dates like BirthDate or HireDate. 

Summary

Now you have an up-to-date Adventure Works database for creating solutions and without feeling outdated! 

What’s next?

In upcoming posts, I’ll continue to explore some of the great features and services available in the data analytics space within Azure services.   

If you have any questions or there is anything specific that you’d like to learn about, please leave me a comment below!

You might like these posts

comments [ 7 ]
share
No tags 0
7 Responses
  • Carlos
    03 . 09 . 2020

    What version on SQL do I have to restore? I tried to restore to a SQL 2016 instance and it failed

  • HASAN MOSHARROF
    10 . 03 . 2021

    When I update the dates by dropping FK constraints from FactInternateSales and other related tables
    I tried to update the FK but it is not working.

  • HASAN MOSHARROF
    11 . 03 . 2021

    I have done the date updates using the new link. But still after date update there is no relationships in FactInterntSales tables Orderdate/DhipDate/DueDate key with DimDate date key.

    I tried to alter the table add constraints but got the following error.

    Msg 547, Level 16, State 0, Line 1
    The ALTER TABLE statement conflicted with the FOREIGN KEY constraint “FK_FactInternetSales_DimDate”. The conflict occurred in database “AdventureWorksDW”, table “dbo.DimDate”, column ‘DateKey’.

  • Byte Force
    27 . 08 . 2021

    Hi,

    Where will I get the Adventure Work Finance Data? for BI Reporting? I searched the whole internet but I couldn’t find any data regarding invoices or receivables.

    Is there any sample available? please let me know

Do you want to leave a comment?

Your email address will not be published. Required fields are marked *