Relational Algebra
This chapter describes and illustrates a set of generic, read-only operators on relations that together constitute what’s called the relational algebra. The algebraic closure property is explained and its significance discussed in detail. Operators described include RENAME, restrict, project, UNION, INTERSECT, MINUS, JOIN, TIMES, MATCHING, NOT MATCHING, EXTEND (two versions), GROUP, and UNGROUP. Image relations are explained, including in particular a discussion of their usefulness in formulating summarization queries. Relational comparisons (relation equality, relation inclusion, etc.) are discussed, as are primitive operations and the important notion of relational completeness. The use of WITH in formulating complicated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access