Using Databases with Python

8,646 ratings
1,571 reviews

Course 4 of 5 in the Python for Everybody Specialization

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.

100% online courses

Start instantly and learn at your own schedule.

Approx. 10 hours to complete

Suggested: 5 weeks of study, 2-3 hours/week
Comment Dots


Subtitles: English

What you will learn

  • Check
    Explain the basics of Object Oriented Python
  • Check
    Understand how data is stored across multiple tables in a database
  • Check
    Use the Create, Read, Update, and Delete operations to manage databases
  • Check
    Utilize the Google Maps API to visualize data

Skills you will gain

Python ProgrammingDatabaseSqlSqlite

100% online courses

Start instantly and learn at your own schedule.

Approx. 10 hours to complete

Suggested: 5 weeks of study, 2-3 hours/week
Comment Dots


Subtitles: English

Syllabus - What you will learn from this course


2 hours to complete

Object Oriented Python

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 (Total 64 min), 4 readings, 2 quizzes
Video8 videos
Unicode Characters and Strings17m
14.1 - Object Oriented Definitions and Terminology8m
14.2 - Our First Class and Object7m
14.3 - Object Life Cycle8m
14.4 - Object Inheritance6m
Bonus: Interview - Software Engineering - Bertrand Meyer11m
Bonus: Office Hours - London1m
Reading4 readings
Help us learn more about you!10m
Python Textbook10m
Coming from Python 2 - Encoding Data in Python 310m
Notice for Auditing Learners: Assignment Submission10m
Quiz2 practice exercises
Using Encoded Data in Python 310m
Object Oriented Programming22m


4 hours to complete

Basic Structured Query Language

We learn the four core CRUD operations (Create, Read, Update, and Delete) to manage data stored in a database....
7 videos (Total 77 min), 3 quizzes
Video7 videos
15.2 - Using Databases12m
15.3 - Single Table CRUD16m
Worked Example: Counting Email in a Database13m
Bonus: Office Hours Zagreb, Croatia3m
Interview: Elizabeth Fong - The Early Years of SQL7m
Worked Example: (Chapter 15)9m
Quiz1 practice exercises
Single-Table SQL22m


3 hours to complete

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 (Total 81 min), 2 quizzes
Video8 videos
15.5 - Representing a Data Model in Tables11m
15.6 - Inserting Relational Data9m
15.7 - Reconstructing Data with JOIN12m
Worked Example: (Chapter 15)13m
Bonus: Office Hours Perth, Australia1m
Bonus Interview: Niklaus Wirth15m
Bonus: Office Hours Barcelona2m
Quiz1 practice exercises
Multi-Table Relational SQL20m


2 hours to complete

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....
5 videos (Total 62 min), 2 quizzes
Video5 videos
Worked Example: (Chapter 15)11m
Bonus: Office Hours Mexico, City0m
Bonus Interview: Andrew Tannenbaum - Minix10m
Worked Example: (Chapter 15)21m
Quiz1 practice exercises
Many-to-Many Relationships and Python18m


2 hours to complete

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 (Total 40 min), 2 readings, 1 quiz
Video6 videos
16.2 - Geocoding Visualization7m
Worked Example: Geodata (Chapter 16)13m
Bonus: Office Hours - Amsterdam3m
Bonus Interview: Richard Stallman - Free Software Foundation2m
Bonus Interview: Brian Behlendorf - Apache Foundation4m
Reading2 readings
Please Rate this Course on Class-Central10m
Post-Course Survey10m
Direction Signs


started a new career after completing these courses


got a tangible career benefit from this course


got a pay increase or promotion

Top Reviews

Top rated instructor
High quality course material
By HYOct 24th 2016

I love the course and the professor so much. The course kinds of integrating everything before in the specialization. It's still very understanding and easy to learn with the previous courses learnt.

By AMAug 14th 2017

Buen curso para un repaso de las bases de datos relacionases. Además es una introducción rápida y sencilla de como hacer conexión con una aplicación de python. Además el Dr. Chuck es muy buen maestro



Charles Severance

Associate Professor

About 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....

Frequently Asked Questions

  • Once you enroll for a Certificate, you’ll have access to all videos, quizzes, and programming assignments (if applicable). Peer review assignments can only be submitted and reviewed once your session has begun. If you choose to explore the course without purchasing, you may not be able to access certain assignments.

  • If you pay for this course, you will have access to all of the features and content you need to earn a Course Certificate. If you complete the course successfully, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. Note that the Course Certificate does not represent official academic credit from the partner institution offering the course.

  • Yes! Coursera provides financial aid to learners who would like to complete a course but cannot afford the course fee. To apply for aid, select "Learn more and apply" in the Financial Aid section below the "Enroll" button. You'll be prompted to complete a simple application; no other paperwork is required.

More questions? Visit the Learner Help Center