Skip to content

cbcoutinho/learn_postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn PostgreSQL using 'The Complete SQL Bootcamp'

This is a repository that contains work related to the sql course I'm taking to learn postgresql.

These scripts all assume that 'dvdrentals' database has been restored to a locally running postgresql server. The dvdrentals database is accessible via the course link. To create the database locally from a fresh dvdrental.tar file, first create a fresh database, then restore it using the following command:

$ createdb dvdrentals
$ pg_restore --clean --dbname=dvdrentals dvdrental.tar

To restore the exercises database, use the following commands. NOTE: If the database is already created, it errors out on the (--create/-C) flag.

$ createdb exercises
$ pg_restore --clean --dbname=exercises --exit-on-error exercises.tar

About

Simple repo to follow Udemy's 'The Complete SQL Bootcamp' course by Jose Portilla

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors