Relational Model in DBMS

0
149

The relational model is a fundamental concept in database management systems (DBMS). It is a way of organizing and manipulating data by representing it as tables with rows and columns. Each row is known as a tuple, and each table has a name or attribute. In this article, we will explore the key concepts of the relational model and how it can be used to represent data.

Domain:

A domain is a set of atomic values that an attribute can take. It defines the type of data that can be stored in a particular column or attribute. For example, a domain for a column that stores phone numbers may be a set of integers or characters.

Attribute:

An attribute is the name of a column in a particular table. Each attribute must have a domain that defines the type of data that can be stored in that column. For example, in the STUDENT relation, the attributes are NAME, ROLL_NO, PHONE_NO, ADDRESS, and AGE.

Relational Instance:

In a relational database system, a relational instance is represented by a finite set of tuples. A relation instance does not have duplicate tuples. In the STUDENT relation example, there are five tuples representing each student’s information.

Relational Schema:

A relational schema contains the name of the relation and the name of all columns or attributes. It provides a blueprint for how the data is organized in a particular table. For example, in the STUDENT relation, the relational schema contains the relation’s name and attributes, such as NAME, ROLL_NO, PHONE_NO, ADDRESS, and AGE.

Also Read:  ACID Properties in DBMS

Relational Key:

In the relational key, each row has one or more attributes that can identify the row in the relation uniquely. In other words, it is a way of identifying a particular tuple in a table. In the STUDENT relation example, the ROLL_NO attribute can be used as a relational key to identify each student uniquely.

Properties of Relations:

The properties of relations include the following:

  • The name of the relation is distinct from all other relations.
  • Each relation cell contains exactly one atomic value.
  • Each attribute contains a distinct name.
  • The attribute domain has no significance.
  • A tuple has no duplicate value.
  • The order of the tuple can have a different sequence.

Conclusion:

In summary, the relational model is a powerful way of organizing and manipulating data in a DBMS. It represents data as tables with rows and columns, where each row is known as a tuple. Each table has a name or attribute, and each attribute must have a domain that defines the type of data that can be stored in that column. The relational key is a way of identifying a particular tuple in a table. Understanding the key concepts of the relational model is essential for anyone working with data in a DBMS.

Previous articleKeys in DBMS
Next articleRelational Algebra
Namaskaar, Friends main Kapil byteshastra.com ka Founder hu. Mere kai English blog bhi hai ,par mera motive yahan par easy language mein Technology se related Gyan ko aap tak pahunchane ka hai .taki aap kuch naya shikh sake. meri koshish hai ki bilkul simple tarike se aap ko nyi updates deta rahu taki aap bhi technology ke is yug mein peeche na rahe aur shikte rahe.Mujhse judne ke liye app mujhe Social Media par follow kar sakte hai.

Leave a Reply