A relationship, in the context of databases, is a situation that exists between two relational database tables when one table has a foreign key that references the primary key of the other table. Relationships allow relational databases to split and store data in different tables, while linking disparate data items.
For example, in a bank database a CUSTOMER_MASTER table stores customer data with a primary key column named CUSTOMER_ID; it also stores customer data in an ACCOUNTS_MASTER table, which holds information about various bank accounts and associated customers. To link these two tables and determine customer and bank account information, a corresponding CUSTOMER_ID column must be inserted in the ACCOUNTS_MASTER table, referencing existing customer ids from the CUSTOMER_MASTER table. In this case, the ACCOUNTS_MASTER table’s CUSTOMER_ID column is a foreign key that references a column with the same name in the CUSTOMER_MASTER table. This is an example of a relationship between the two tables.
The fundamental feature that differentiates relational databases from other database types (e.g., flat-files) is the ability to define relationships.
Read More »
Join over 135,000 IT pros on our weekly newsletter.
Astroturfing is the practice of using deceptive communications to make a corporate or political message appear natural and organic, as if it comes from a very distributed group of individuals or naturally emerging social movements. This term is often used in politics, but also may be used in IT, as those who engage in astroturfing typically use...