By the end of this lesson you will read the four kinds of database query, practise them on a throwaway database, and catch the data mistakes AI agents make most often before they reach real users.
You need: your coding agent, the tuition tables from lesson 4 · Time: 9 minutes
Every app, from a UPI expense tracker to a college attendance app, does only four things with data. They have three sets of names, depending on who is talking:
You want to… Short name (CRUD) Database (SQL) API (REST) add a new student Create INSERTPOSTsee the list of students Read SELECTGETchange a student's phone Update UPDATEPATCHremove a student Delete DELETEDELETESQL is the language databases understand. Your app's screen sends a request (
POST /students), your server turns it into SQL (INSERT INTO students …), and the database does it.Match them Match what the user does with the SQL that runs
Tap an item on the left, then its meaning on the right.
Why?You will not write SQL by hand. But the agent will show you SQL, and when something goes wrong it will talk in these words. Knowing which of the four a query is tells you at once how dangerous it is: SELECT only looks, the other three change data.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- Make a practice database you can break
- Read data: ask questions in plain English
- Change data: the WHERE that saves you
- Six mistakes to look for in AI data code
- Make the agent explain its data layer
- Recap