Skip to content

lukebarousse/Int_SQL_Data_Analytics_Course

Repository files navigation

📊 Intermediate SQL for Data Analytics - Full Course

Data Nerds! This repo contains all the files needed to follow along my free course: Intermediate SQL for Data Analytics

Team Members 👥

🙋🏼‍♂️ Course Leader: Luke Barousse
🎬 Course Producer: Kelly Adams
📺 Video Editor: Brannon Linder

Table of Contents

👷 Section Under Construction

Load Database Locally

Prerequisites:

Steps:

  1. Download the Contoso database.
  2. Open pgAdmin 4.
  3. In Object Explorer, connect to your PostgreSQL server.
  4. Right-click on "Databases" > "Create" > "Database...".

Create Database

  1. Enter contoso_100kfor "Database" and click "Save".
  2. In Object Explorer, right-click on the contoso_100k database > "PSQL Tool".
  3. In the PSQL Tools Window, enter \i [path to contoso_100k.sql] and press enter.
\i '/Users/lukebarousse/Desktop/contoso_100k.sql'
  1. In the Query Tool, set default password for the postgres user to password.
    ⚠ If you have sensitive information in your server DO NOT do this step ⚠️
ALTER USER postgres WITH PASSWORD 'password';

Run SQL Locally in Jupyter Notebook

Prerequisites:

Steps:

  1. Create a new conda environment with ipykernel, pandas, and matplotlib:
conda create -n sql_course python=3.11 ipykernel pandas matplotlib
  1. Activate the environment:
conda activate sql_course
  1. Install the jupysql and psycopg2 packages:
conda install -c conda-forge jupysql psycopg2
  1. Upgrade jupysql, necessary due to this issue:
pip install --upgrade jupysql
  1. Activate the sql_course environment in the notebook.

Found a Typo? Want to Contribute?

  • 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

About

My 'Intermediate SQL for Data Analytics' course on YouTube

Resources

Stars

Watchers

Forks

Packages

No packages published