liveBook · Manning

From clause

As explained in Grokking Relational Database Design

A FROM clause specifies the table or tables that provide the source rows for an SQL query.

A FROM clause identifies the table or tables that supply the rows for an SQL query. It answers the question, “Where should the data come from?” section 1.5

Choose products as the source

In SELECT name FROM product WHERE price > 20;, FROM product tells the RDBMS to retrieve rows from the product table. SELECT chooses the name column, while WHERE keeps products priced above 20. section 1.5

Use the FROM clause with other clauses to shape a query:

SELECT name
FROM product
WHERE price > 20;

View the complete three-clause query showing FROM in context. section 1.5

How Grokking Relational Database Design covers it

How deep it goes
Defines FROM and demonstrates it in a SELECT-WHERE query, without exploring query execution internals.
Examples
Demonstrates FROM product in a query that returns names of products priced above 20.
What it assumes
Builds from basic tables and SQL clauses while introducing query structure through a first example.
What you can do after
Apply it via SQL by selecting source rows from a named table and combining FROM with SELECT and WHERE.
How it connects
Connects FROM with SELECT, WHERE, and GROUP BY as clauses used to retrieve, filter, and aggregate data.

Also explained in

Compare how 3 books explain from clause →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Relational Database Design. The section links point to the parts of the book it draws on.