SQL Overview#

This chapter provides an overview of basic syntax and operations in SQLite, a version of Structured Query Language (SQL). It also provides an overview of connecting relational database workflows and SQL syntax in Python.

Acknowledgements#

The author consulted the following resources when building out this chapter:

Peer review and editing was provided by Spring 2021 graduate teaching assistants Aidan Draper, Eric Tsai Sahoo & Subhadyuti Sahoo.

Chapter Table of Contents#

Data#

We’ll be working with a relational database file that includes the players, teams, locations, and transactions tables. Download link options are included below.

Software#

Navigate to https://sqlitebrowser.org/ in a web browser. Select the download version for your operating system:

Follow the installation instructions. Once the installation is complete, launch the program.

Application#

Click here for a Jupyter Notebook template for this chapter’s application problems.

For questions that involve SQL queries, include your query in a code cell.