Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Part 125 min · narrated · preview

Written summary

  • Chapter 1: The Flighty Junior Developer--– "Write a query to find customers who rented more than ten films in May 2005."
  • The model is not dumb.
  • You are no longer writing SQL yourself; you are curating the information that an AI uses to write SQL for you.
Read along — the full text

Chapter 1: The Flighty Junior Developer--– "Write a query to find customers who rented more than ten films in May 2005." You type this sentence into a chat window, press enter, and ten seconds later, SQL appears. It looks correct. It has a JOIN between rental and customer. It has a COUNT(*) with a HAVING clause. It even aliases the aggregates with AS rental_count, which is exactly how your team likes to write SQL. You copy it into your database client, run it, and the error arrives: ERROR: column customer.full_name does not exist. The query references a column that has never existed in your database. The model invented it.This is your first encounter with the reality of prompt engineering for SQL.

The model is not dumb. It knows SQL syntax. It understands the question. It even respects your team's aliasing convention. But it has never seen your schema, and it confidently guessed that a customer table would have a full_name column. In most training data, it does. In your database, the customer's name is split across first_name and last_name. The model was wrong, but it was wrong in a way that feels intelligent. That is precisely what makes this hard.Welcome to the new syntax. Natural language is becoming a legitimate query language, but it requires a new kind of discipline. This is not about "asking nicely" or "prompting harder." This is about engineering context.

You are no longer writing SQL yourself; you are curating the information that an AI uses to write SQL for you. The shift is subtle but profound. A SQL developer writes precise instructions. A prompt engineer designs probabilistic systems that generate precise instructions. The difference is the difference between a carpenter cutting wood themselves versus teaching an apprentice who knows the tools but has never seen your workshop.This chapter establishes the foundational mental model that will carry you through the entire book. You will learn to think of the LLM (Large Language Model) as what we call a flighty but brilliant junior developer. This metaphor is not cute marketing.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in