
- DBMS Tutorial
- DBMS - Home
- DBMS - Overview
- DBMS - Architecture
- DBMS - Data Models
- DBMS - Data Schemas
- DBMS - Data Independence
- Entity Relationship Model
- DBMS - ER Model Basic Concepts
- DBMS - ER Diagram Representation
- DBMS - Generalization, Aggregation
- Relational Model
- DBMS - Codd's Rules
- DBMS - Relational Data Model
- DBMS - Relational Algebra
- DBMS - ER to Relational Model
- DBMS- SQL Overview
- Relational Database Design
- DBMS - Database Normalization
- DBMS - Database Joins
- Storage and File Structure
- DBMS - Storage System
- DBMS - File Structure
- Indexing and Hashing
- DBMS - Indexing
- DBMS - Hashing
- Transaction And Concurrency
- DBMS - Transaction
- DBMS - Concurrency Control
- DBMS - Deadlock
- Backup and Recovery
- DBMS - Data Backup
- DBMS - Data Recovery
- DBMS Useful Resources
- DBMS - Quick Guide
- DBMS - Useful Resources
- DBMS - Discussion
What is a composite attribute in DBMS?
The attributes that cannot be divided into sub-parts are called simple attributes. The attributes which can be divided into sub-parts are called composite attributes.
Example
Balance, account number are simple attributes
Name, address is called composite attributes
Let’s consider an example of how to convert Entity Relationship (ER) model of composite attribute to Relational model.
Methods for mapping
Name of relation = Entity set of ER diagram
Name of column = Attribute of ER diagram
Example
In this example,
Name of the relation =student
Name of columns=StdID, name, Branch
The equivalent relation for the above ER diagram is −
Student
StdID | Name | Branch |
Now apply this technique for Mapping ER diagram with a composite attribute as shown below −
In the above example composite attribute is address and component attributes are street, city, state, zip.
The equivalent relation for the above ER diagram is −
Customer
CustomerID | Name | Street | City | State | zip |
- Related Articles
- What is a database(dbms)?
- What is a Data Model in DBMS?
- What is a query language in DBMS?
- What is a materialized view in DBMS?
- What is a composite data type i.e. object in JavaScript?
- What is Decomposition in DBMS?
- What is 4NF in DBMS?
- What is RAID in DBMS?
- What is a multimedia database (DBMS)?
- What is dirty read in a transaction(DBMS)?
- What is a buffer attribute in JSP?
- What are composite numbers? Can a composite number be odd? If yes, write the smallest odd composite number.
- What is functional dependency in DBMS?
- What is Transitive dependency in DBMS?
- What is an instance in DBMS?
