Loading topic
SELECT queries with WHERE, ORDER BY and GROUP BY, join tables with JOIN, create tables and insert rows, and you know that databases have users with privileges. The examples run on PostgreSQL. Where other systems behave differently, the text says so.6 min readdepartments and employees tables from the earlier chapters. It covers how a view gets its column names, the two ways to set them, the errors that come from getting them wrong, and what happens7 min readCREATE VIEW as shown in the earlier chapters. It uses the departments and employees tables from the sample schema. Here you will use views for two jobs: hiding query complexit5 min readSELECT queries with joins, have created a view with CREATE VIEW, and know that a view stores a query, not data. The sample tables are departments and employees from earlier chapters.6 min readCREATE VIEW from the earlier chapters, and you know how GRANT and REVOKE work on tables. It uses the employees and departments tables from the sample schema. Examples use PostgreSQL syntax, and the text notes where othe5 min readINSERT, UPDATE and DELETE statements. The examples use the employees and departments tables from earlier in the tutorial. They are written for PostgreSQL, and the chapter says where other systems differ.6 min reademployees and departments tables from earlier chapters. Syntax is shown for PostgreSQL. MySQL and Oracle behave simi5 min readJOIN, GROUP BY, and WHERE. You have the employees and departments tables from the sample schema. The examples use PostgreSQL syntax. Where other systems behave differently, the text says so.5 min readSELECT queries with joins and GROUP BY, and that you have created a view with CREATE VIEW. It uses the employees and departments tables from earlier chapters. The examples use PostgreSQL syntax, and the chapter notes where other systems differ.6 min readSELECT queries with JOIN and GROUP BY. It also assumes you know how a regular view works: a named query that the database expands into the queries that use it. The examples use PostgreSQL syntax and the departments and employees tables from earlier chapte6 min readGROUP BY queries, know that a materialized view stores its query result on disk, and have used CREATE INDEX. The examples use PostgreSQL syntax. Oracle and MySQL differ, and the differences are covered below.5 min readCREATE VIEW, you know SELECT, JOIN and WHERE, and you have a rough idea of schemas and privileges. The examples use the employees and departments tables and the views from earlier chapters. Examples are written for PostgreSQL unless a headin6 min readCREATE VIEW, CREATE OR REPLACE VIEW and DROP VIEW work, and you have seen GRANT, WITH CHECK OPTION and materialized views. Examples use the employees and departments tables from earlier chapters and PostgreSQL syntax7 min read