Database Systems · Relational Model and Keys
Relational Model as the Most Popular Representational Data Model
Overview
The relational model is the most popular database model used at the representation level.
Its dominance comes from the wide availability of relational database management system (RDBMS) software and from standardization, which lets users switch vendors without retraining employees.
Key concepts
- Relational model: the most popular database model used at the representation level among the many database models available; it is the dominant model for representing data.
- Growing popularity: more and more vendors manufacture and provide RDBMS software, so the model's popularity keeps increasing.
- System R: the earlier version of RDBMS software, provided by IBM, which is where relational databases started. It was DBMS software that could be easily bought.
- Vendor flexibility: because many vendors provide RDBMS software, a user is not locked into one product; if you are unhappy with one software product, it is very easy to replace it with another vendor's software.
- Standardization: everyone follows the same standards, which is what makes replacement between products possible.
- SQL compatibility: all relational database management systems are written so that they can interact with SQL — they are all SQL-compatible.
- Vendor independence: since all RDBMSs understand SQL, you need not worry about which type of RDBMS you are using; as long as you know SQL, you can work with the RDBMS.
How it works
- Relational databases started with IBM, which provided System R, the earlier version of RDBMS software.
- Later, many companies started providing relational database management systems.
- Because many vendors provide RDBMS software, a user is not locked into one product and can easily replace one vendor's software with another's.
- This replacement is possible because of standardization in this area.
- All relational database management systems are SQL-compatible, so employees trained in SQL need not be trained separately to understand each RDBMS itself.
- Train employees in SQL once; use whichever vendor's RDBMS you are comfortable with, and later move the platform to another RDBMS if that vendor does not give enough support or charges too much — without worrying about retraining employees.
Worked examples
Changing software without a common standard: a company has trained its employees, investing a lot of money, to access a database management system. If the software is changed, the employees might otherwise need to be retrained, costing time and money.
Changing RDBMS software under the relational model: the employees need not be retrained, because all RDBMSs are SQL-compatible and follow common standards. The company simply moves to another vendor's RDBMS.
Comparison
| Situation | Effect on users / employees |
|---|---|
| Changing DBMS software without a common standard | Employees may have to be retrained, which costs time and money |
| Changing RDBMS software under the relational model | Employees need not be retrained because all RDBMSs are SQL-compatible and follow common standards |
Revision summary
- The relational model is the most popular model at the representation level.
- Relational databases started with IBM's System R.
- Many vendors now provide RDBMS software, giving flexibility to replace one product with another.
- Standardization in relational databases allows easy migration between RDBMS products.
- All relational database management systems are compatible with SQL.
- Because of SQL compatibility, employees trained in SQL do not need retraining when the RDBMS software or vendor changes.
- Train employees in SQL once; then choose any vendor's RDBMS and switch later if support is poor or costs are too high.
Previous-year exam insights
- The relational model was proposed by E. F. Codd in 1970; its theoretical foundation is set theory and first-order predicate logic, and a relation is a set of tuples over a schema, with no ordering of tuples or attributes.
- The relational model is a 'representational' (record-based) model, as are the network and hierarchical models; the ER model is a conceptual/high-level model and the object-based and physical models are not representational.
- Codd's rules / relational integrity: the model requires entity integrity (primary key attributes cannot be NULL) and referential integrity (a foreign key value must match an existing primary key value or be NULL).
- SQL is the standard language for relational DBMSs, standardized by ANSI/ISO (SQL-86, SQL-92, SQL:1999, etc.); being 'SQL-compatible' means conforming to this standard, which is what enables portability across vendors.
- A relation is in first normal form only if all attribute values are atomic; the degree of a relation is its number of attributes and its cardinality is its number of tuples.
- Keys: a superkey uniquely identifies tuples; a candidate key is a minimal superkey; the primary key is one chosen candidate key; a foreign key references a candidate/primary key of another (or the same) relation.