Keys and Joins

In the previous discussions, I used terms such as primary key and join. These are important database terms. As you know, a database consists of a series of related entities. These entities will model the tables that will hold the data. The attributes that you will extract from the database will most likely be contained in several tables. A join is the process of matching records from one table to another. The entity relationships show you the entities (tables) that can be joined.

The database keys are the tools used to match the records from two different tables. Records are matched by having a common value(s) in one or more columns in the related tables. For example, suppose that the database has two tables: Departments and Employees. ...

Get Oracle SQL and PL/SQL Handbook: A Guide for Data Administrators, Developers, and Business Analysts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.