O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

From 0 To 1:SQL And Databases - Heavy Lifting

Video Description

Your bodyguard for when data gets too big, this course is strong but friendly, funny yet deep, animated yet thoughtful.

About This Video

  • SQL In Great Depth
  • Database Fundamentals and Just Enough Theory
  • Practical Examples - Queries in MySQL and SQLite, and code in Python

In Detail

Your bodyguard for when data gets too big, this course is strong but friendly, funny yet deep, animated yet thoughtful. Let’s parse that. Your bodyguard for when data gets too big: Most business folks (and quite a few engineers) use Excel as a basic tool of decision making and modeling, but when you can't fit the data you'd like into an Excel spreadsheet that you can easily open, its time to move to a database. The course is strong but friendly: This course will help you move to a database without being intimidated by the new environment. Don't let anyone tell you that any dataset is too large or too complicated for you to understand. The course is funny yet deep: It goes really deep into the topics that folks often find hard to understand, such as joins, aggregate operators and interfacing with databases from a programming language. But it never takes itself too seriously. The course is very visual: most of the techniques are explained with the help of animations to help you understand better. This course is practical as well: Queries are explained in excruciating detail, indices are demystified, and potentially career-limiting traps (Drop, Alter) are marked with bright yellow tape markers so you can steer clear. The course is also quirky. The examples are irreverent. Lots of little touches: repetition, zooming out so we remember the big picture, active learning with plenty of quizzes. There’s also a peppy soundtrack, and art - all shown by studies to improve cognition and recall.

Table of Contents

  1. Chapter 1 : Introduction To Databases
    1. Data Is A Big Deal 00:18:21
    2. Why Do We Need A Database? 00:19:57
    3. MySQL - Installed and Introduced (Mac OS X) 00:07:04
    4. Setting up MySQL and the Workbench (Mac OS X) 00:17:32
    5. MySQL Server and Workbench installed (Windows) 00:06:32
    6. Entities And Attributes - Things And Stuff Which Describe Them 00:15:15
    7. dentifying Entities Using Keys 00:13:41
    8. The Entity Relationship (E-R) Model - Entities And Attributes 00:05:43
    9. Relationships - What Connects Entities 00:05:50
    10. Cardinality Of Relationships 00:09:11
    11. The Entity Relationship (E-R) Model - Relationships 00:09:51
    12. Mapping E-R Theory to the world of databases 00:13:27
  2. Chapter 2 : Going From Relations To Database Tables
    1. Introducing The SELECT Statement 00:19:53
    2. Introducing The SELECT Statement 00:11:13
    3. Quotes and NULLS - Avoid The Gotchas 00:13:53
    4. Simple Examples 00:14:49
    5. More Simple Examples 00:13:21
    6. Using the Like Operator 00:08:10
    7. Between, In and Not In 00:18:13
    8. A Multi-Column Select 00:10:27
    9. Working with Dates (MySQL As Example) 00:11:24
  3. Chapter 3 : Creating Tables And Inserting Data Into Them
    1. Creating Database, Use Database and Create Table 00:14:07
    2. Column Subtleties: Null, Primary Key and Auto-Increment 00:14:42
    3. An Example - Sales Data 00:12:37
    4. Insert Table - Examples 00:19:25
    5. More Insert Table Examples 00:09:14
    6. Referential Integrity Introduced 00:19:54
    7. Creating a Database and Using It 00:17:25
    8. An Involved Bulk Loading Example 00:14:14
  4. Chapter 4 : Back To Retrieving Data - More Advanced Queries Using Group By
    1. Aggregation Operators Introduced 00:18:16
    2. The Group By Clause 00:17:20
    3. More Group By Examples 00:19:47
    4. Order By 00:16:15
    5. Having 00:19:52
    6. Limit 00:07:12
    7. Count and Count Distinct 00:08:20
  5. Chapter 5 : Joins - Don't Let Them Intimidate You! They're All Fuzzy And Nice
    1. Introduction To SQL Joins 00:09:54
    2. Cross Joins aka Cartesian Joins 00:17:03
    3. Inner Joins 00:19:53
    4. Left Outer Joins 00:15:31
    5. Right, Full Outer Joins, Natural Joins, Self Joins 00:16:08
  6. Chapter 6 : Subqueries: Layering The Cake
    1. Subqueries Introduced 00:07:07
    2. Union, Union All, Intersect and Except. 00:19:32
    3. Query-In-A-Query 00:13:49
    4. Inserting Via Subqueries 00:09:43
    5. Use A Subquery To Populate A Table 00:06:50
    6. Outer Join And Inner Join: A Little Test 00:08:59
  7. Chapter 7 : Constraints
    1. Not NULL constraints 00:10:08
    2. Primary Keys 00:09:43
    3. Foreign Key Constraints 00:13:27
    4. Deletes and Updates With Foreign Key Constraints 00:12:05
    5. Check Constraints 00:01:39
  8. Chapter 8 : Somewhat More Advanced Concepts
    1. Indices 00:16:47
    2. Stored Procedures 00:10:27
    3. Triggers 00:11:38
    4. Transactions 00:13:07
    5. Handle with Care: Update and Delete 00:13:27
    6. Handle with Care: Alter and Drop 00:12:37
    7. Views, Temporary Tables, and User Priviliges 00:05:36
  9. Chapter 9 : Table Design: Theory And Practice
    1. Practical Tips for Table Designs that you won't regret! 00:11:58
    2. More Practical Design Tips 00:10:44
    3. Normal Forms - Friends Once You Know Them 00:10:28
  10. Chapter 10 : Putting It Together: Database Programming In Python
    1. Interfacing with Databases from Python 00:06:46
    2. SQLite works right out of the box 00:06:27
    3. Build a database of Stock Movements - I 00:15:02
    4. Build a database of Stock Movements - II 00:13:48
    5. Build a database of Stock Movements - III 00:13:23
  11. Chapter 11 : Appendix
    1. [For Linux/Mac OS Shell Newbies] Path and other Environment Variables 00:08:26