
- 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
Explain the design constraints on the generalization and specialization (DBMS)?
The different types which we need to consider while designing generalization and specialization in the Database Management System (DBMS) are as follows −
Conditional definition
Attribute defined
User defined
Disjoint defined
Overlapping constraint
Completeness constraint
Let us now understand them one by one.
Conditional definition
Create one database, and keep conditions on one attribute for example attendance. This type of constraint is defined on a single attribute which is further dividing an entity into two sub entity sets which will give information for the given attribute.
Example
Given below is an example of the conditional definition database −
Attribute defined
This refers to specifying conditions on more than one attribute.
Example
Consider a database for the marks and attendance.
This type of constraint is defined on two or more attributes for the given entity which is further divided into subclass entities.
Here the condition can be specified on more than two attributes.
For example, Account types------ savings and current.
For savings and current accounts, we can perform balance, withdrawal, deposit same but type is different.
User defined
In this constraint the decision is left to the super class that how many instances of the super class will be participating in the sub class.
In the above example Team leader decides which team will join according to skills.
Disjoint constraints
Disjoint is nothing but intersection, the number of instances specified for the given superclass can participate in only one of the sub classes.
Account users can participate in saving account and current account but both are different so, it can be participated one at a time.
It is just like a minus, as shown below −
Overlapping constraint
Two or more instances of the super class are participating in two or more sub classes then it is called overlapping constraints.
Example
A person who knows Java and PHP can participate in both teams.
Complete constraint
Every instance participates in a relationship. All the instances of the superclass must participate in a relationship or into the sub class.
- Related Articles
- Difference Between Generalization and Specialization in DBMS
- Generalization, Specialization and Aggregation in ER Model
- What are constraints on ER model in DBMS?
- What are integrity constraints over the relation in DBMS?
- What is the example of data generalization and analytical generalization?
- Explain the advantages and disadvantages of DBMS?
- Explain the characteristics of DBMS?
- Explain the architecture of DBMS?
- Explain the components of DBMS?
- Explain the design and implementation of a simple microsequencer?
- Explain the logical operators in DBMS
- Explain the Network Model in DBMS?
- Explain the Relational Model in DBMS?
- Explain the cardinality concept in DBMS?
- Explain the relational algebra in DBMS?
