Loading topic
CREATE TABLE statement, know what a row and a column are, and have seen SELECT ... WHERE. It covers two linked ideas. Every column has a data type that limits what it can hold. Any column may also hold NULL, a marker that means "no value", which behaves diff6 min readCREATE TABLE and INSERT statements and know that a table holds rows and columns. It covers what a primary key guarantees, how to choose one, how composite keys work, and the mistakes that cause trouble later.6 min readCREATE TABLE and SELECT statements. It covers what a foreign key is, how the database enforces it, what happens when you delete or update a referenced row, and the errors people hit most often.7 min readCREATE TABLE and JOIN before. Here you will use those pieces to model how real entities relate to each other.7 min readINSERT, SELECT, UPDATE, and DELETE. It also covers filtering, sorting, grouping, and the mistakes that cause the most damage in practice. It assumes you know what tables, primary keys, and foreign keys are, and that you can read sho6 min readCREATE TABLE, INSERT, and SELECT ... WHERE. It also assumes you know how primary keys and foreign keys link tables. It uses the customers, orders, products, and order_items tables from earlier chapters.5 min readCREATE TABLE, INSERT, and SELECT ... JOIN statements. It also assumes you know what primary keys and foreign keys are. Normalization is the process of splitting data across tables so that each fact is stored in exactly one place. The goal is a design in which 5 min readINSERT, UPDATE, and SELECT statements. It also assumes you know what primary keys, foreign keys, and CHECK constraints do. Constraints reject a single bad row. Transactions protect a group of statements that must succeed or fail together.7 min readSELECT queries with WHERE, JOIN, and ORDER BY. It also assumes you know what primary keys and foreign keys are, as covered in earlier chapters. By the end you should be able to explain what an index is, create one, predict when the database will use it, and7 min read