fromclauses
Fromclauses, in the context of SQL, refer to the portion of a query that identifies the data sources used by the statement. A query’s data sources include base tables, views, derived tables (subqueries in the FROM clause), and common table expressions defined with WITH that appear in the FROM list. In standard SQL, a FROM clause follows the SELECT clause (and precedes the WHERE, GROUP BY, and ORDER BY clauses).
Structure and aliases: The FROM clause begins with FROM and is followed by one or more table
Joins and predicates: Joins inside the FROM clause specify how rows from different sources are combined. Typical
Special features and dialect differences: Some dialects provide extensions such as LATERAL (PostgreSQL), CROSS APPLY and
Semantics and optimization: The FROM clause defines the initial data set that downstream clauses operate on.
Example: SELECT a.name, b.sales FROM customers AS a INNER JOIN orders AS b ON a.id = b.customer_id;