Teaching Kai SQL: Part 2 — Diving Deeper into Real-World Databases, Keys, Indexes, Inserts, and Joins
In Part 1 , we covered the basics of creating databases and tables and introduced primary and foreign keys. Now, as Kai continues his journey beyond Microsoft Access, we’re diving deeper into how real-world databases really work. While Access is a handy tool for beginners, Kai quickly ran into its limitations — especially when trying to insert multiple rows or fully grasp complex database concepts like keys, indexes, and joins. Access can be a bit “finicky,” making it tricky to experiment freely. To give Kai a more robust and practical foundation, I introduced him to Microsoft SQL Server (MSSQL). This powerful platform offers the flexibility and control needed to understand what’s happening under the hood of SQL, how data integrity is enforced, and how performance can be optimized. In this post, we explore: How to insert single and multiple records into tables The impact of these operations on indexes and database performance Different types of SQL joins, including i...