Designing a Relational Database
The Big Idea This chapter marks the beginning of Part 2, where we transition from a simple file-based system to a powerful and professional relational database, laying the theoretical groundwork...
Collection
The Big Idea This chapter sets the stage for our entire journey, establishing the “Learn to Earn” philosophy, introducing the three-stage “PyInventory” project, and guiding you from installing Python to...
"Explore the latest insights and deep dives curated specifically for this category."
The Big Idea This chapter marks the beginning of Part 2, where we transition from a simple file-based system to a powerful and professional relational database, laying the theoretical groundwork...
The Big Idea This chapter translates our database design from Chapter 10 into reality by writing a Python script that uses the built-in sqlite3 module to create the physical inventory.db...
The Big Idea This chapter replaces our old, file-based logic from Part 1 with a new set of powerful functions that communicate directly with our SQLite database using raw SQL...
The Big Idea This chapter introduces a powerful, professional tool called an Object-Relational Mapper (ORM) to refactor our raw SQL code, allowing us to interact with our database using intuitive...
The Big Idea This chapter introduces one of the most powerful concepts in database design—relationships—by creating a Supplier table and linking it to our existing Product table using a Foreign...
The Big Idea This chapter introduces variables—the fundamental building blocks for making programs remember, track, and manipulate information—and applies them to store our first pieces of inventory data for PyInventory....
The Big Idea This chapter makes our program dynamic by learning how to ask the user for information using the input() function and then converting that information into the correct...
The Big Idea This chapter introduces Python’s most fundamental collection type, the list, to store multiple inventory items, and the for loop to process each item in the collection, finally...