Dbms Ca2
Dbms Ca2
Dbms Ca2
Simple Attributes
Composite Attributes
Single Valued Attributes
Multi-Valued Attributes
Derived Attributes
Complex Attributes (Rarely used attributes)
Key Attributes
Stored Attributes
1.Simple Attributes:
Simple attributes in an ER model diagram are independent attributes
that can't be classified further and also, can't be subdivided into any
other component. These attributes are also known as atomic
attributes.
Example Diagram:
4.Multi-Valued Attributes:
Multi-valued attributes have opposite functionality to that of single-
valued attributes, and as the name suggests, multi-valued attributes
can take up and store more than one value at a time for an entity
instance from a set of possible values. These attributes are
represented by co-centric elliptical shape, and we can also use curly
braces { } to represent multi-valued attributes inside it.
Example Diagram:
As we can see in the above example, the Student entity has four
attributes: Roll_no and Age are simple as well as single-valued
attributes as discussed above but Mob_no and Email_id are
represented by co-centric ellipse are multi-valued attributes. Each
student in the real world can provide more than one email-id as well
as a mobile contact number, and therefore, we need these attributes
to be multi-valued so that they can store multiple values at a time for
an entity instance.
5.Derived Attributes:
Derived attributes in DBMS are those attributes whose values can be
derived from the values of other attributes. They are always
dependent upon other attributes for their value.
For example, As we were discussing above, DOB is a single-valued
attribute and remains constant for an entity instance. From DOB, we
can derive the Age attribute, which changes every year, and can
easily calculate the age of a person from his/her date of birth value.
Hence, the Age attribute here is derived attribute from the DOB
single-valued attribute.
Example Diagram:
7.Complex Attributes:
Complex attributes are rarely used in DBMS. They are formed by the
combination of multi-valued and composite attributes. These
attributes always have many sub-sections in their values.
Example Diagram: