PostgreSQL Sample Database (original) (raw)

Summary: in this tutorial, we will introduce you to a PostgreSQL sample database that you can use for learning and practicing PostgreSQL.

We will use the DVD rental database to demonstrate the features of PostgreSQL.

The DVD rental database represents the business processes of a DVD rental store. The DVD rental database has many objects, including:

In the diagram, the asterisk (*), which appears in front of the field, indicates the primary key.

There are 15 tables in the DVD Rental database:

You can download the PostgreSQL DVD Rental sample database via the following link:

Download DVD Rental Sample Database

The database file is in zipformat ( dvdrental.zip) so you need to extract it to dvdrental.tar before loading the sample database into the PostgreSQL database server.

Besides the sample database, we provide you with a printable ER diagram in PDF format. You can download and print the ER diagram for reference while practicing PostgreSQL.

Download the Printable ER Diagram

This tutorial introduced you to a PostgreSQL sample database named DVD Rental. We will use this database in our PostgreSQL tutorials, so make sure you load it to your server.