MetaSnake Products/Mastering SQL Selection - Professional

  • $199

Mastering SQL Selection - Professional

Contents

Installation

You will need to install Python, Jupyter, and Pandas for this course.

This video will walk you through installing Pandas and Jupyter on your machine. You can also reference this post I have created https://www.metasnake.com/blog/pydata-dev.html
001-install.mov

Jupyter

We will be leveraging the Jupyter environment through this course. This will introduce you to it.
002-jupyter.mov

Files for Course

Here are the files for this course. You will need to download them to follow along and master SQL selection.
SQL.ipynb
pres-er.png
alta-er.png
SQL Exercises.ipynb
SQL Cheatsheet

Course Overview

In this section I will demo the content for the course. If you want to follow along make sure you have the notebook and have installed Jupyter. You will see an example of what we will go over in the course.
01-Pres-example.mp4
01-load-ex.mov

Connect to a Database

Here I demo connecting to a Sqlite database using Python. Most languages have an API for interacting with a database. The language will usually have a "driver" for a given vendor. This class is vendor and language agnostic (we use Python but just because it ships with Sqlite so it is easy to use). You will want to consult the documentation for your language and DB to determine best practices for your combination.
02-connecting.mp4
02-connecting-ex.mov

Selection

Let's start with the basics. Pulling out all the columns or a subset of them. Oh yeah, also we might want to limit the number of rows returned, so let's do that too.
03-selection.mp4
03-selection-ex.mov

Exceptions

As you learn SQL you will run into exceptions. Sometimes, you will get an error. Sometimes, you might have logic errors (or just bad SQL) that runs but returns the wrong (or an empty) result.
04-exceptions.mp4
04-exceptions-ex.mov

Counts

Counting is probably the most basic operation of a data scientist. It is probably one of the most useful metrics as well. Counts are used all over the place. Let's see how to do them with SQL!
05-counts.mp4
Preview
05-counts-ex.mov
Preview

Filtering

You need more than selection. You don't want to look at a million rows of data. You want to look at data that is relevant. Since we are lazy, let's use a computer (or SQL) to help us with that.
06-filter.mp4
06-filter-ex.mov

Dates

We will also need to know how to filter by date. Let's jump in!
07-dates.mp4
07-dates-ex.mov

Strings

Might as well look at filtering with strings as well!
08-strings.mp4
08-strings-ex.mov

NULL

Missing data. The bane of our existence. It is tricky and confusing. Let's try and clear away some of the confusion.
09-null.mp4
09-null-ex.mov

Aggregations

Counting is one way to aggregate rows to a single value. There are other aggregate functions that we can use to summarize data. And we can summarize by arbitrary columns.
10-groupby.mp4
10-groupby-ex.mov

Sorting

Let's put a bow on it. Make it look pretty. Here's some lipstick. Oh, and sort it too! Can you sort it by this column as well?
11-sorting.mp4
11-sortings-ex.mov

Filtering Aggregations

SQL allows us to filter before an aggregation and after one!
12-having.mp4
12-having-ex.mov

Query Parameters

A best practice is to be away of a potential security hole called SQL Injection. Let's explore that and how to prevent it.
13-query-params.mp4
13-qp-ex.mov