Skip to main content

Creating PostgreSQL Databases

This course teaches you the skills and knowledge necessary to create and manage your own PostgreSQL databases.

Start Course for Free
4 Hours16 Videos51 Exercises6,675 Learners4100 XPSQL for Database Administrators Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

You have experience working with databases or, perhaps, you have heard how useful databases can be for organizing your data. Have you ever wanted to create and manage your own databases but thought such knowledge is reserved for database administrators? Well, it is not! This course teaches you the skills and knowledge necessary to create and manage your own PostgreSQL databases. Topics that will be covered include the structure of PostgreSQL databases, PostgreSQL datatypes, and normalization of databases to efficiently store data and avoid data loss. These topics will be taught using data from the U.S. Small Business Administration (SBA) to guide the lessons and provide context for the concepts covered in the course.

  1. 1

    Chapter 1: Structure of PostgreSQL Databases


    In this chapter, you will be introduced to the fundamental objects in a PostgreSQL database: the database, tables, and schemas. After completing this chapter, you will know how to issue commands to create all three types of objects, and understand how each fits into the hierarchy of PostgreSQL objects.

    Play Chapter Now
    Creating a database
    50 xp
    New database creation
    50 xp
    Motivation for a new database
    50 xp
    Creating tables
    50 xp
    Name that table
    100 xp
    Two tables and a foreign key connection
    100 xp
    Creating schemas
    50 xp
    User-level schemas
    100 xp
    The public schema
    100 xp
    Creating tables in existing schemas
    100 xp
  2. 3

    Chapter 3: Database Normalization

    In this chapter, database normalization is introduced. Database normalization maintains data integrity and reduces data duplication. 1st, 2nd, and 3rd Normal Form are defined as steps in the process of normalizing a database. Examples to clarify concepts are provided throughout the chapter.

    Play Chapter Now
  3. 4

    Chapter 4: Access Control in PostgreSQL

    In this chapter, the topic of access control in PostgreSQL is introduced. Access control is presented as granting and revoking privileges to users and groups on database objects. Using these tools, a database and its objects can be protected from unauthorized access, helping to ensure the integrity of the stored data.

    Play Chapter Now

In the following tracks

SQL for Database Administrators


maggiematsuiMaggie MatsuidavidventuriDavid Venturi


Introduction to SQL
Darryl Reeves Ph.D Headshot

Darryl Reeves Ph.D

Industry Assistant Professor, NYU Tandon School of Engineering

Darryl is a computational scientist with expertise in utilizing data-driven approaches to solve complex problems in both academic and business settings. He worked for a number of years in a variety of technical roles including software development and technology-based client services mostly within start-up organizations in the finance and online advertising industries. He has a love for technology and education and enjoys solving interesting problems across diverse domains.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA