Introduction to SQL Databases: Relational Databases Basics

Izzy Weber introduces relational databases using a library example: tables for patrons, books, and checkouts that link together to answer questions like which books someone borrowed in a given year. SQL lets you query and update these databases at scale, unlike spreadsheets.
Chapters
Hello and welcome. My name is Izzy Weber and I will be your SQL coach. We have two main goals in this course. In chapter one, we will get to know databases, which store and organize data electronically. We'll discuss how databases and the data they store are structured. This context will prepare us for our second goal, to extract data from databases using SQL code in Chapter two. Let's dive in. A Database stores Data let's imagine that we are in charge of storing and organizing data for a library. We might set up a database that holds information such as the data pictured here on patrons, books, and checkouts. This information is housed in objects called tables, with data organized into rows and columns. This database contains a patrons table, a books table, and a checkouts table. A closer look at the patrons table shows that it stores various data about our library's patrons, like library card number, name, the year the patron became a library member, and the total overdue fines the patron owes our library. A relational database defines relationships between tables of data inside the database. For example, each of our library patrons might each be associated with several checkouts. Through these relationships, we can draw conclusions about data housed in separate tables in the same database and answer questions such as which books did James check out during 2022? Or which books are checked out most often? These tables might look similar to the way data is organized in spreadsheet applications such as such as Excel or Google Sheets, but databases are far more powerful than spreadsheets. Databases can store much more data, and storage is more secure due to encryption. Possibly the biggest advantage of a database is that many users can write queries to gather insights from the data. At the same time, when a database is queried, the data stored inside the database does not change. Rather, the database information is accessed and presented according to instructions in the query. Which leads us to the star of this show, SQL. SQL or SQL is short for Structured Query Language. It is the most widely used programming language for creating, querying, and updating relational databases. Once we are familiar with the data we have and which table it is stored on, we can use SQL to begin writing queries to answer questions about our library. More on that in chapter two.
More from Richie

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon







