Professional Documents
Culture Documents
C 11
C 11
Constraints are used for modeling limitations on the relations between entities. There are constraints of the data. It provides the conceptual tools for describing the design of a
two types of constraints on the Entity Relationship (ER) model − Mapping cardinality or database at each level of data abstraction. Therefore, there are following four data models
cardinality ratio. Participation constraints.// Mapping Cardinality used for understanding the structure of the database:/A Data Model in Database Management
It is expressed as the number of entities to which another entity can be associated via a System (DBMS) is the concept of tools that are developed to summarize the description of
relationship set.//One-to-one relationship An entity set A is associated with at most one the database. Data Models provide us with a transparent picture of data which helps us in
entity in B and an entity in B is associated with at most one entity in A.//One-to-many creating an actual database. It shows us from the design of the data to its proper
relationship An entity set A is associated with any number of entities in B with a possibility implementation of data.//
of zero and an entity in B is associated with at most one entity in A.//Many-to-one TYPES Relational Data Model: This type of model designs the data in the form of rows and
relationship An entity set A is associated with at most one entity in B and an entity set in B columns within a table. Thus, a relational model uses tables for representing data and in-
can be associated with any number of entities in A with a possibility of zero.//Many-to- between relationships. Tables are also called relations. //
many relationship An entity set A is associated with any number of entities in B with a 2Entity-Relationship Data Model: An ER model is the logical representation of data as
possibility of zero and an entity in B is associated with any number of entities in A with a objects and relationships among them. These objects are known as entities, and relationship
possibility of zero. /(/Participation Constraints is an association among these entities.//Object-based Data Model: An extension of the ER
Participate constraints are two types as mentioned below −Total participation model with notions of functions, encapsulation, and object identity, as well. This model
The participation of an entity set E in a relationship set R is said to be total if every entity in supports a rich type system that includes structured and collection types.//The semistructured
E Participates in at least one relationship in R.//Partial Participation If only some of the data model allows the data specifications at places where the individual data items of the
entities in E participate in relationship R, then the participation of E in R is said to be partial same type may have different attributes sets.
participation. Advantages of Data Models/Data Models help us in representing data accurately.
It helps us in finding the missing data and also in minimizing Data Redundancy.
An entity type refers to a collection of entities that share common characteristics or
Data Model provides data security in a better way.//The data model should be detailed
attributes. An entity is a distinct object or concept that is represented in the database.
enough to be used for building the physical database.//The information in the data model can
For example, consider a database for a university. In this case, “Student” could be an entity
be used for defining the relationship between tables, primary and foreign keys, and stored
type, and each individual student (with specific details like student ID, name, and
procedures.
enrollment status) would be an instance of that entity type. The attributes of the “Student”
DISADVANTAGE In the case of a vast database, sometimes it becomes difficult to
entity type could include things like “StudentID,” “Name,” “DateOfBirth,” and
understand the data model.
“EnrollmentStatus.”In summary, an entity type is a category of entities with shared
You must have the proper knowledge of SQL to use physical models.
attributes in a database, and it helps organize and structure the information stored in the
Even smaller change made in structure require modification in the entire application.
system.
There is no set data manipulation language in DBMS.
How is key different from E R model A "key" is a field or combination of fields in a database
To develop Data model one should know physical data stored characteristics.
table that uniquely identifies each record. There are different types of keys, such as a
primary key (which uniquely identifies each record in a table) or a foreign key (which
DATABASE ARCHITECTURE The Database Management System (DBMS) architecture
establishes a link between two tables). Keys are essential for maintaining data integrity,
shows how data in the database is viewed by the users. It is not concerned about how the data
enforcing relationships between tables, and enabling efficient data retrieval.On the other
are handled and processed by the DBMS.//It helps in implementation, design, and
hand, the “Entity-Relationship (ER) model” is a conceptual framework used to represent the
maintenance of a database to store and organize information for companies. The concept of
relationships between entities in a database. It involves entities (objects or concepts) and
DBMS depends upon its architecture. The architecture can be designed as centralized,
their relationships, along with attributes that describe the entities. The model helps in
decentralized, or hierarchical.
designing and visualizing the structure of a database before its implementation.keys are
The architecture of DBMS can be defined at three levels as follows –
specific fields used for identification and relationship purposes within a database table,
External levels./Conceptual levels./Internal levels.:External Level (User View):The external
while the ER model is a broader conceptual framework for designing and understanding the
level is the topmost layer of the three-level architecture and is also known as the user view or
relationships between entities in a database.
user interface level.//Each user view presents a subset of the data from the overall database,
IMPORTANCE OF DATA MODELA data model is crucial for database design as it serves as a
blueprint for structuring and organizing data. It helps in understanding, designing, and
communicating the database structure. Here are some key aspects of its importance://
//Data Retrieval and Manipulation:Guides the efficient retrieval and manipulation of data by
with a parent-child relationship. Mainframes and early databases often used this model.
Relational Data Model://Represents data as tables (relations) with rows and columns. It has
become the most widely used data model due to its simplicity and flexibility.//Entity-
between entities.
Client-Server Architecture:
Separates the database server responsible for storing and managing data from the client
Web-based Architecture:
Utilizes web technologies to provide access to databases over the internet, often using a