Understanding Relations
Look at the details of relations in SQL.
We'll cover the following
As usual, the PostgreSQL documentation provides us with some information here in its section entitled the FROM Clause:
Note: A table reference can be a table name (possibly schema-qualified) or a derived table such as a subquery, a join construct, or complex combinations of these. If more than one table reference is listed in the
from
clause, the tables are cross-joined (that is, the Cartesian product of their rows is formed; see below). The result of thefrom
list is an intermediate virtual table that can then be subject to transformations by thewhere
,group by
, andhaving
clauses and is finally the result of the overall table expression.
Get hands-on with 1400+ tech skills courses.