Data Nerds! This repo contains all the files needed to follow along my free course: Intermediate SQL for Data Analytics
🙋🏼♂️ Course Leader: Luke Barousse
🎬 Course Producer: Kelly Adams
📺 Video Editor: Brannon Linder
👷 Section Under Construction
- Download the Contoso database.
- Open pgAdmin 4.
- In Object Explorer, connect to your PostgreSQL server.
- Right-click on "Databases" > "Create" > "Database...".
- Enter
contoso_100k
for "Database" and click "Save". - In Object Explorer, right-click on the
contoso_100k
database > "PSQL Tool". - In the PSQL Tools Window, enter
\i [path to contoso_100k.sql]
and press enter.
\i '/Users/lukebarousse/Desktop/contoso_100k.sql'
- In the Query Tool, set default password for the
postgres
user topassword
.
⚠ If you have sensitive information in your server DO NOT do this step⚠️
ALTER USER postgres WITH PASSWORD 'password';
- PostgreSQL Installed
- Anaconda Installed
- Database Running Locally
- Create a new conda environment with
ipykernel
,pandas
, andmatplotlib
:
conda create -n sql_course python=3.11 ipykernel pandas matplotlib
- Activate the environment:
conda activate sql_course
- Install the
jupysql
andpsycopg2
packages:
conda install -c conda-forge jupysql psycopg2
- Upgrade
jupysql
, necessary due to this issue:
pip install --upgrade jupysql
- Activate the
sql_course
environment in the notebook.
- If you find an error in this repo, please feel free to make a pull request by:
- Forking the repo
- Making any changes
- Submitting a pull request