Databases + Python with SQLite3 - Part 2 - Foreign Keys

preview_player
Показать описание
In this video, we cover creating a one-to-many relationship between two tables in a database and how we can make use of that relationship once we've done that.

Make sure to watch the first part before tackling this one:

Link to code:

#sql #python #sqlite3

00:00 - Intro
00:19 - Looking at the Tables
02:35 - Creating Tables with Foreign Keys
06:14 - Inserting into the Tables
08:16 - Querying the Tables - Using the Relationship

#python #coding #databases
Рекомендации по теме
Комментарии
Автор

Hey! I just wanted to say thanks for this tutorial, it's really priceless. It helped me fix a bug in my university project which I've been trying to fix for 3 days. I'll reference this video in my report.

karolinalencina
Автор

This was the first time I see an explanation of how to use foreign keys in sqlite3. Great Job. Thank you.

aavalos
Автор

Thank you this really helped me understand basic sql I needed for my college assignement

andrewmaksimovich
Автор

Gracias por el video, me fue de bastante utilidad, un abrazo.

Karlitosforever
Автор

Tysm for this tutorial. Im trying to learn python + databases on my own and sometimes its hard to find good and simple explanations for things. Your's is easy to understand even for me (since im spanish). Also, I would like to ask you if there is anyway to, only accesing to the patient table, get the name of the doctor.
Very nice video and thank you beforehand :)

Killerelcraftero
Автор

Thanks so much! Because I've done stupid mistake and couldn't grasp it

dmitrykrivushkin
Автор

Thank you for this video. It is best explanation to tell Foreign KEY use on Sqlite. But It would be more better If you would show DELETE function too... When Delete Doctor to Delete Patients too..

mevlutademaj
Автор

Привет, ты молодец, хороший тон начинать с самого кода 👍

sanchenso
Автор

Great video, I was just wondering how you got that purple/pink cursor thing for your video, other than that, your tutorials seem great, surprised not many people know about you

technocuber
Автор

Hello can you show how to use join functions on the tables? Thank you!

colt
Автор

hi im newbie in databases. but what if a patient have multiple doctors? i need to create a third table or is there better way?

dokerbd
Автор

A vaccine passport system ?? What’s next, Big Brother is watching you software? 😂

robertweekes
join shbcf.ru