Loading topic
SELECT query with a WHERE clause. You should also understand that a table contains rows and columns, and that a primary key identifies a row. A foreign key connects a column in one table to a key in another table.2 min readSELECT ... WHERE queries and understand tables, rows, columns, primary keys, and foreign keys. An INSERT statement adds one or more new rows to a table.2 min readSELECT queries, tables, columns, data types, and primary and foreign keys. This chapter focuses on two ways an INSERT can represent missing information: a column default and the special value NULL.2 min readSELECT queries work. This chapter uses standard SQL syntax. Small differences exist between database systems.2 min readSELECT queries, WHERE clauses, tables, columns, primary keys, and foreign keys. INSERT ... SELECT uses the rows returned by a query as the new rows for another table. It is useful for archiving, importing, and transforming existing data.2 min readSELECT queries, tables, rows, columns, and WHERE clauses. This chapter uses the orders table:1 min readWHERE, and that orders contains numeric columns such as total and text columns such as status. In this chapter, you will use expressions in UPDATE statements to calculate new values from each row's current values.2 min readSELECT with WHERE, and that the example database has customers and orders tables. The tables use primary keys, and each order refers to a customer through customer_id.2 min readSELECT queries with WHERE, tables, rows, columns, primary keys, and foreign keys. This chapter focuses on a safety habit: preview the rows before changing them.2 min readSELECT with WHERE, and that you understand tables, rows, primary keys, and foreign keys. A transaction groups several database operations into one unit. You can keep all of the changes with COMMIT or undo them with ROLLBACK.2 min readSELECT queries with WHERE, understand tables, rows, and columns, and know the basic purpose of primary and foreign keys.2 min readSELECT queries with WHERE, tables, rows, columns, primary keys, and foreign keys. This chapter focuses on what happens when you delete a row that other rows reference.2 min readSELECT queries with WHERE and JOIN, understand primary and foreign keys, and know the basic forms of UPDATE, DELETE, and transactions.1 min readSELECT queries with WHERE, understand tables and rows, and know that a primary key identifies a row. You should also understand that a foreign key connects a child table to a parent table.2 min readSELECT, WHERE, primary keys, and the difference between inserting, updating, and deleting rows. This chapter focuses on reading the rows affected by a data-change statement.2 min readSELECT statements with WHERE, understand tables and keys, and know that a UNIQUE constraint prevents duplicate values.2 min read