Skip to main content
HomePython

Course

Introduction to Databases in Python

IntermediateSkill Level
4.7+
251 reviews
Updated 08/2024
In this course, you'll learn the basics of relational databases and how to interact with them.
Start Course for Free
PythonData Manipulation
4 hr
20 videos
66 Exercises
5,550 XP
100K+
Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training a Team?

Try for Business

Course Description

In this course, you'll learn the basics of using SQL with Python. This will be useful because databases are ubiquitous and data scientists, analysts, and engineers must interact with them constantly. The Python SQL toolkit SQLAlchemy provides an accessible and intuitive way to query, build, and write to essential databases, including SQLite, MySQL, and PostgreSQL.

Prerequisites

Intermediate Python
1

Basics of Relational Databases

In this chapter, you’ll get acquainted with the fundamentals of relational databases and the relational model for database management. You will learn how to connect to a database and interact with it by writing basic SQL queries, both in raw SQL as well as SQLAlchemy, which provides a Pythonic way of interacting with databases.
Start Chapter
2

Applying Filtering, Ordering and Grouping to Queries

In this chapter, you will build on your database knowledge by writing more nuanced queries that allow you to filter, order, and count your data—all within the Pythonic framework provided by SQLAlchemy.
Start Chapter
Introduction to Databases in Python
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 251 reviews
81%
17%
2%
0%
0%
  • Noel
    2 weeks ago

    Great course!

  • Adia
    2 weeks ago

  • Joelliton
    3 weeks ago

  • Jose leonam
    3 weeks ago

  • Nhan
    3 weeks ago

  • Thierry
    4 weeks ago

"Great course!"

Noel

Adia

Joelliton

FAQs

Which Python library is used to work with databases in this course?

You will use SQLAlchemy, a Python SQL toolkit that provides an intuitive, Pythonic way to query, build, and write to databases including SQLite, MySQL, and PostgreSQL.

Do I need to know SQL before starting this course?

No prior SQL knowledge is required. The course teaches you basic SQL queries alongside their SQLAlchemy equivalents, starting from the fundamentals of relational databases.

Will I learn to create my own databases or just query existing ones?

Both. The first three chapters focus on querying existing databases, and chapter 4 teaches you to create, populate, and update your own databases using SQLAlchemy.

What does the final chapter project involve?

Chapter 5 is a real-life project where you connect to a database, populate it with data, and apply all the querying and manipulation skills from the previous chapters.

How many exercises does this course include?

The course has 5 chapters with 66 exercises totaling 5,550 XP, making it one of the more comprehensive introductory database courses available.

Join over 19 million learners and start Introduction to Databases in Python today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.