Pages

04 April, 2022

Relational Model concept

 

Relational Model concept

The relational model can represent as a table with columns and rows. Each row is known as a tuple. Each table of the column has a name or attribute.

Domain: It contains a set of atomic values that an attribute can take.

Attribute: It contains the name of a column in a particular table. Each attribute Ai must have a domain, dom(Ai)

Relational instance: In the relational database system, the relational instance is represented by a finite set of tuples. Relation instances do not have duplicate tuples.

Relational schema: A relational schema contains the name of the relation and the name of all columns or attributes.

Relational key: In the relational key, each row has one or more attributes. It can identify the row in the relation uniquely.

Example: STUDENT Relation

NAMEROLL_NOPHONE_NOADDRESSAGE
Ram147957305758992Noida24
Shyam128399026288936Delhi35
Laxman332898583287182Gurugram20
Mahesh278577086819134Ghaziabad27
Ganesh172829028 9i3988Delhi40
  • In the given table, NAME, ROLL_NO, PHONE_NO, ADDRESS, and AGE are the attributes.
  • The instance of schema STUDENT has 5 tuples.
  • t3 = <Laxman, 33289, 8583287182, Gurugram, 20>

Properties of Relations

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

No comments:

Post a Comment

Thanks