Using Databases with Python

Using Databases with Python

Using Databases with Python

University of Michigan

About this course: This course will introduce students to the basics of the Structured Query Language (SQL) as well as basic database design for storing data as part of a multi-step data gathering, analysis, and processing effort. The course will use SQLite3 as its database. We will also build web crawlers and multi-step data gathering and visualization processes. We will use the D3.js library to do basic data visualization. This course will cover Chapters 14-15 of the book “Python for Everybody”. To succeed in this course, you should be familiar with the material covered in Chapters 1-13 of the textbook and the first three courses in this specialization. This course covers Python 3.

To start this class out we cover the basics of Object Oriented Python. We won't be writing our own objects, but since many of the things we use like BeautifulSoup, strings, dictionaries, database connections all use Object Oriented (OO) patterns we should at least understand some of its patterns and terminology.

8 videos, 3 readings

Video: Welcome to Using Databases with Python

Reading: Help us learn more about you!

Reading: Python Textbook

Reading: Coming from Python 2 - Encoding Data in Python 3

Video: Unicode Characters and Strings

Video: 14.1 - Object Oriented Definitions and Terminology

Video: 14.2 - Our First Class and Object

Video: 14.3 - Object Life Cycle

Video: 14.4 - Object Inheritance

Video: Bonus: Interview - Software Engineering - Bertrand Meyer

Video: Bonus: Office Hours - London

Graded: Using Encoded Data in Python 3

Graded: Object Oriented Programming

WEEK 2

Basic Structured Query Language

We learn the four core CRUD operations (Create, Read, Update, and Delete) to manage data stored in a database.

6 videos

Video: 15.1 Relational Databases

Video: 15.2 - Using Databases

Video: 15.3 - Single Table CRUD

Video: Worked Example: Twspider.py (Chapter 15)

Video: Bonus: Office Hours Zagreb, Croatia

Video: Interview: Elizabeth Fong - The Early Years of SQL

Graded: Single-Table SQL

Graded: Our First Database

Graded: Counting Email in a Database

WEEK 3

Data Models and Relational SQL

In this section we learn about how data is stored across multiple tables in a database and how rows are linked (i.e., we establish relationships) in the database.

8 videos

Video: 15.4 - Designing a Data Model

Video: 15.5 - Representing a Data Model in Tables

Video: 15.6 - Inserting Relational Data

Video: 15.7 - Reconstructing Data with JOIN

Video: Worked Example: Tracks.py (Chapter 15)

Video: Bonus: Office Hours Perth, Australia

Video: Bonus Interview: Niklaus Wirth

Video: Bonus: Office Hours Barcelona

Graded: Multi-Table Relational SQL

Graded: Multi-Table Database - Tracks

WEEK 4

Many-to-Many Relationships in SQL

In this section we explore how to model situations like students enrolling in courses where each course has many students and each student is enrolled in many courses.

4 videos

Video: 15.8 - Many-to-Many Relationships

Video: Worked Example: Twfriends.py (Chapter 15)

Video: Bonus: Office Hours Mexico, City

Video: Bonus Interview: Andrew Tannenbaum - Minix

Graded: Many-to-Many Relationships and Python

Graded: Many Students in Many Courses

WEEK 5

Databases and Visualization

In this section, we put it all together, retrieve and process some data and then use the Google Maps API to visualize our data.

6 videos, 2 readings

Video: 16.1 - Geocoding

Video: 16.2 - Geocoding Visualization

Video: Worked Example: Geodata (Chapter 16)

Video: Bonus: Office Hours - Amsterdam

Video: Bonus Interview: Richard Stallman - Free Software Foundation

Video: Bonus Interview: Brian Behlendorf - Apache Foundation

Reading: Please Rate this Course on Class-Central

Reading: Post-Course Survey

Graded: Databases and Visualization (peer-graded)

FAQs

How It Works

Coursework

Each course is like an interactive textbook, featuring pre-recorded videos, quizzes and projects.

Help from Your Peers

Connect with thousands of other learners and debate ideas, discuss course material,
and get help mastering concepts.

Certificates

Earn official recognition for your work, and share your success with friends,
colleagues, and employers.

Creators

University of Michigan

The mission of the University of Michigan is to serve the people of Michigan and the world through preeminence in creating, communicating, preserving and applying knowledge, art, and academic values, and in developing leaders and citizens who will challenge the present and enrich the future.

Pricing

Audit

Purchase Course

Access to course materials

Available

Available

Access to graded materials

-

Not available

Available

Receive a final grade

-

Not available

Available

Earn a shareable Course Certificate

-

Not available

Available

Ratings and Reviews

Rated 4.8 out of 5 of 5,633 ratings

I really learn a lot from this course and in very short span of time. Well designed and superb delivery of content by Prof. Dr. Chuck.

Fun

Difficult to absorb completely, but very interesting nonetheless. I'm just glad I was able to complete th

JS

Very interesting course. Well taught for students who are brand new to databases (it is understood that you are quite familiar with Python at this point).