RDBMS stands for Relational Database Management System. RDBMS is a database management system based on the relational model introduced by E.F Codd in the 1970s. The major DBMS like SQL, My-SQL, ORACLE are all based on the principles of relational DBMS.
Commonly used terms in Relational Models
Widely used terms in Relational Model are -
Table or Relation: The table is also known as relation. The table consists of one or more columns and each column has a unique name. Each table contains a record of a particular type and each record type defines a fixed number of fields or attributes.
Tuple or record or row: Rows are called tuples in a relational database. These are also called records. In a relation there should not be two same tuples. One of the tuples can be represented by
Attributes: Attributes are nothing but columns in a relational database. They are also called Fields. For example, the above table consists of four attributes: RollNo, Name, Marks, and phone.
Relation Instance: It refers to a relational database that has some integrity constraints. For example- the following is a relation instance - which contains the records with age above 18.
Domain: For each attribute of the relational table, there is a set of valid values called domain. For example - in the above table, the domain of the Name attribute is all possible names of students. But the Domain of Age attributes is (19,20)
Atomic: The domain is atomic if elements of the domain are considered to be indivisible units. For example, in the above table, the attribute Adhar Card is non-atomic.
NULL attribute: A null is a special symbol, independent of data type, which means either unknown or inapplicable. It does not mean zero or blank. For example - Consider a salary table that contains NULL.
Degree: It is nothing but the total number of columns present in the relational database. In a given Student table - Degree is 4
Cardinality: Cardinality is the number of tuples/rows present in the relational database. In the above-given table, the cardinality is 3.
Constraints mean some rules or restrictions that are set on the database. Integrity constraints are rules that are to be applied to the database columns to ensure the validity of data.
There are four types of integrity constraints that are followed for RDBMS:
- Entity integrity Constraints: It specifies that there should be no duplicate rows in a table.
- Domain Integrity Constraints: It tells the column’s/attribute’s valid values.
- Referential Integrity Constraints: It corresponds to the foreign key concept and hence provides several constraints for inserting, deleting, and modifying content in the referenced relation or referencing relation.
- User-Defined Integrity: It enforces some specific business rules that are defined by users. These rules are different from the entity, domain, or referential integrity.
Advantages of RDBMS:
- Structural Independence: Structural independence is an ability that allows us to make changes in one database without affecting another. The relational model has structural independence. Hence making required changes in the database is convenient in the relational database model.
- Data Security: Data Security is critical when data sharing is private. RDBMS provides Data Security.
- Query capability: Using simple query language (such as SQL) users can get desired information from the database.
- Easy to maintain and use: RDBMS is flexible with multiple data. Hence easy to maintain and use.
Disadvantages of RDBMS:
- The relational model requires powerful hardware and large data storage devices.
- May lead to a slower processing time.
- Poorly designed systems lead to poor implementations of database systems.
- What is RDBMS?
RDBMS is a database management system that stores data in form of tables having unique names and each table contains rows/tuples and columns/attributes. Tables in RDBMS have a primary key identifier, and data values are kept in the form of tables.
- What are some examples of RDBMS?
The major DBMS like SQL, My-SQL, ORACLE are all based on the principles of relational DBMS.
- What is the difference between RDBMS and DBMS?
DBMS stores data as files while RDBMS stores data in a tabular manner.
- Why is RDBMS used?
For the purposes of ACID, the integrity constraint is defined by the RDBMS. To retrieve the stored information, the RDBMS system supports a tabular structure of the data and a relationship between them. An RDBMS is built to handle massive amounts of data. It can be used by numerous people.
In this blog, we have learned that RDBMS stands for Relational Database Management System. RDBMS is a database management system based on the relational model introduced by E.F Codd in the 1970s. The major DBMS like SQL, My-SQL, ORACLE are all based on principles of relational DBMS. Then we learned about various terms used in RDBMS like Table, Tuple, Attributes, Relation, Atomic, Degree, Cardinality, etc. Integrity constraints are rules that are to be applied to the database columns to ensure the validity of data. There are four types of integrity constraints that are followed for RDBMS: entity, domain, user-defined and referential.
Visit here to learn more about different topics related to database management systems.
Also, try CodeStudio to practice programming problems for your complete interview preparation and check out the Top 100 SQL Problems to get hands-on experience with frequently asked interview questions and land your dream job.