00 /What You Will Learn
By the end you will be able to
- Read and write
SELECTwithWHERE,ORDER BYandLIMIT. - Change data with
INSERT,UPDATEandDELETE, and explain whyWHEREis not optional. - Count and group with
COUNT,SUMandGROUP BY. - Join tables, and know the difference between
JOINandLEFT JOIN. - Explain what a primary key, a foreign key,
NOT NULL,UNIQUEandCHECKprotect you from. - Say what an index is and read the words
Seq ScanandIndex Scan.
Before you start
You need Docker Desktop running and the basics from Lab 01 (Docker Compose Basics). You do not need any SQL. The lab starts a PostgreSQL 16 database that already has a small kirana store in it.
Lab-only password
The database password in this lab is lab_only_password. It is only for practice on your own laptop. A real database never gets a password like that.