Chapter 8. Queries

Table of Contents

8.1. Overview
8.2. Table Expressions
8.2.1. The FROM Clause
8.2.2. The WHERE Clause
8.2.3. The GROUP BY and HAVING Clauses
8.2.4. GROUPING SETS, CUBE, and ROLLUP
8.2.5. Window Function Processing
8.3. Select Lists
8.3.1. Select-List Items
8.3.2. Column Labels
8.3.3. DISTINCT
8.4. Combining Queries
8.5. Sorting Rows
8.6. LIMIT and OFFSET
8.7. VALUES Lists
8.8. WITH Queries (Common Table Expressions)
8.8.1. SELECT in WITH
8.8.2. Data-Modifying Statements in WITH
8.9. ROWNUM
8.10. Oracle Compatible Queries
8.10.1. Pseudocolumns
8.10.2. Queries
8.11. MySQL Compatible Queries
8.11.1. Queries

The previous chapters explained how to create tables, how to fill them with data, and how to manipulate that data. Now we finally discuss how to retrieve the data from the database.