Database Systems: Ch. Venkata Rami Reddy Cs-222 Ii-Ii Sem
Database Systems: Ch. Venkata Rami Reddy Cs-222 Ii-Ii Sem
Database Systems
Ch. Venkata Rami Reddy
CS-222 II-II SEM
UNIT – I
[Link]
Venkata Rami Reddy Ch Dept of CSE
UNIT-1
[Link]
Venkata Rami Reddy Ch Dept of CSE
UNIT-1
[Link]
Venkata Rami Reddy Ch Dept of CSE
UNIT-1
[Link]
Venkata Rami Reddy Ch Dept of CSE
Contents
[Link]
Venkata Rami Reddy Ch Dept of CSE
Contents
[Link]
Venkata Rami Reddy Ch Dept of CSE
Contents
Topics: • Specialization
• Generalization
[Link]
Venkata Rami Reddy Ch Dept of CSE
data
• A data mean known facts or raw facts that can be
recorded and that have implicit meaning.
Topic 1 • For example, consider the names, telephone,
numbers, and addresses of the people you know.
Introduction to You may have recorded this data in an indexed
Database
address book, you may have stored it on a hard
Systems
drive, using a personal computer and software
Introduction to Dbms such as Microsoft Access, or Excel.
• Information: Processed data.
in
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database
• Database is a large collection of related data that
can be stored generally describes activities of an
Topic 1 organization.
Characteristics of data in a database:
Introduction to
Database Systems
Shared: Data in a database are shared among
different users and different applications.
Persistence : Data in database exist permanently.
Correctness: Data should be correct
Security: Data should be protected from un
authorized access
Non-redundancy: No two data items in a database
should represent the same entity.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Properties
•
It is used to store data of an organization.
Topic 1
•A database is designed and developed for a
specific purpose.
Introduction to
• It has some source from which data is derived and
Database Systems
it is populated with that data.
• It can be of any size
• It allows multiple users to share and access
database at the same time.
Eg: - University database which includes students,
faculty, courses & class rooms information along
with activities such as enrolment and teaching
courses.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Management System
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Management System
[Link]
Venkata Rami Reddy Ch Dept of CSE
Actions of DBMS
• Defining a database involves specifying the data
types, structures, and constraints for the data to
Topic 1 be stored in the database
• Manipulating a database includes functions
Introduction to such as querying the database to retrieve
Database Systems specific data, updating the database to reflect
changes, and generating reports from the
data
• Constructing the database is the process of
storing the data itself on some storage medium
that is controlled by the DBMS.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Actions of DBMS
• Sharing a database allows multiple users and
programs to access the database
Topic 1 concurrently
Introduction to
Database Systems
[Link]
Venkata Rami Reddy Ch Dept of CSE
Simplified database system
environment
Topic 1
Introduction to
Database Systems
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Applications
• Banking – For customer information, accounts,
and loans, and banking transactions.
Topic 1
• Airlines – For reservation and schedule
information, flight details etc.
Introduction to
Database Systems • Universities – For student and faculty information,
course registrations, and grades. [registration,
grades]
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Applications:
• Credit Card Transactions – For purchases on
credit card and generation of monthly
Topic 1 statements.
Introduction to
• Telecommunication – For keeping records of
Database Systems calls made, generating monthly bills,
maintaining balances on prepaid calling cards,
and storing information about communication
networks.
• Finance – For storing information about
holdings, sales, and purchases of financial
instruments such as stocks and bonds.
• Sales – For customer, product, and purchase
information. [customers, products, purchases]
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Applications:
• Manufacturing – For management of
supply chain and for tracking production of
Topic 1 items in factories, inventories of items in
warehouses/stores, and orders for items.
Introduction to
[production, inventory, orders, supply chain]
Database Systems
[Link]
Venkata Rami Reddy Ch Dept of CSE
File System
[Link]
Venkata Rami Reddy Ch Dept of CSE
File processing processing system
[Link]
Venkata Rami Reddy Ch Dept of CSE
Drawbacks of File System
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cont ...
Data Redundancy and Inconsistency:
• Data redundancy means appearing same data in
different places.
Topic 2
• In file system same information is stored at
File System different places it causes data-inconsistency
problems during updates.
Difficulty in accessing data:
• In file system application programs are used to
retrieve the data from the file.
• In order to retrieve data from files we need to
write special application program every time.
• This is not a convenient way because every time
the requirements may change need to write a
new program to carry out each new task
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cont ...
Data isolation
• The data is scattered in different files and with
different formats in different locations.
• To retrieve the data from the files separate
Topic 2 programs are required for each and every format
and location.
File System
• So it is difficult to write application programs to
retrieve the data.
Enforcing Integrity constraints
• Data integrity means, all the data has to obey some
condition.
• Ex: Maximum marks of subject, Minimum balance
of account.
• In file system it is difficulty to set such type of
constraints.
• In File System integrity constraints are set at
[Link]
program level.
Venkata Rami Reddy Ch Dept of CSE
Cont ...
Atomicity problems:
• Atomicity is a property of a transaction it states
Topic 2 that either all actions to be performed or none.
• In file processing system incomplete
transactions cannot be roll back.
File System • Due to this data will be inconsistent.
Difficulty in concurrency control:
• concurrency means same file is accessed
/updated by different application programs at
the same time.
• In File Processing System it is not possible to
control concurrency.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cont ...
Security Problems
• Since the information is scattered in different
Topic 2 files and does not have centralized access
path, so it is not possible to provide security
to the data so that everyone can access the
File System data.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Advantages of DBMS
1. Controlling Redundancy
2. Data Consistency
Topic 3 3. Data Security
4. Providing Storage Structures for Efficient Query
Processing
Advantages of 5. Providing Backup and Recovery
DBMS
6. Providing concurrency control
DBMS Advantages 7. Enforcing Integrity constraints
8. Report Writers
[Link]
Venkata Rami Reddy Ch Dept of CSE
Controlling Redundancy
• In non-database systems (File system) same data
is stored in many places.
• Redundancy leads to several problems
Topic 3 [Link] effort: same data can be entered
multiple times 2. Storage space is wasted. 3. Data
inconsistency.
Advantages of • In DBMS, all the data is stored in one place.
DBMS • In DBMS, all the data of an organization is
integrated into a single database.
• By controlling the data redundancy, you can save
storage space
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Consistency
• By controlling the data redundancy, the data
consistency is obtained.
Topic 3 • If a data item appears only once, any update
to its value has to be performed only once
and the updated value (new value of item) is
Advantages of immediately available to all users.
DBMS • If the DBMS has reduced redundancy to a
minimum level, the database system enforces
consistency.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Security
• It is the protection of the database from unauthorized
users.
Topic 3 • Only the authorized persons are allowed to access
the database.
• Some of the users may be allowed to access only a
Advantages of part of database i.e., the data that is related to them
DBMS or related to their department.
• Mostly, the DBA can access all the data in the
database.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Security
[Link]
Venkata Rami Reddy Ch Dept of CSE
Providing concurrency control
Advantages of
DBMS
[Link]
Venkata Rami Reddy Ch Dept of CSE
Enforcing Integrity constraints
[Link]
Venkata Rami Reddy Ch Dept of CSE
Report Writers
[Link]
Venkata Rami Reddy Ch Dept of CSE
Actors of DBMS
Topic 4
DBA, Designers
and End users
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Administrator(DBA)
[Link]
Venkata Rami Reddy Ch Dept of CSE
Responsibilities of DBA
[Link]
Venkata Rami Reddy Ch Dept of CSE
Database Designers
• Database designers are responsible for
identifying the data to be stored in the
Topic 4 database and for choosing appropriate
structures to represent and store this data.
• It is the responsibility of database
Database Designers designers to communicate with all
prospective database users in order to
understand their requirements, and to
come up with a design that meets these
requirements.
[Link]
Venkata Rami Reddy Ch Dept of CSE
End Users
[Link]
Venkata Rami Reddy Ch Dept of CSE
Casual end users
[Link]
Venkata Rami Reddy Ch Dept of CSE
Naive or parametric end users
[Link]
Venkata Rami Reddy Ch Dept of CSE
Sophisticated end users
• Sophisticated end users include engineers,
scientists, business analysts, and others
Topic 4 who thoroughly familiarize themselves with
the facilities of the DBMS so as to
implement their applications to meet their
End Users complex requirements.
Stand-alone users
• Stand-alone users maintain personal
databases by using ready-made program
packages that provide easy-to-use menu-
based or graphics-based interfaces.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Models
• Data model specifies how data is organized in
database.
Topic 5 • A data model is a collection of concepts that
can be used to describe the structure of a
Data Models database.
• Structure of a database mean the data types,
Database Models
relationships, and constraints .
Types of Data Models
• Relational Model
• Entity-Relationship Model
• Hierarchical Model
• Network Model
• Object-Oriented Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relational Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relational Model
Topic 5
Types of Data
Models
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity-Relationship Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity-Relationship Model
Entity
• An entity in ER Model is real world entity, which has
Topic 5 some properties called attributes
• It is a real world thing about which we want to maintain
Types of Data a data.
Models • For example, in a school database, a student is
considered as an entity. Student has various attributes
like name, age and class etc.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Hierarchical Model
• A hierarchical data model is a data model in
which the data is organized into a tree like
Topic 5 structure.
• First commercial DBMS is based on this model.
Types of Data • In Hierarchical model data is represented as
Models records and the records organized as collection
of trees.
• The relationships among the data are
represented by links, which can be viewed as
pointers.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Network Model
Network Model
• In Network model data is represented as records
Topic 5 and the records organized as collection of
arbitrary graphs.
Types of Data • The relationships among the data are represented
Models by links, which can be viewed as pointers.
• In network model a record can have any number
of parent records.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Object-oriented Model
An object database (also object-oriented database
management system, OODBMS) is a
database management system in which information is
Topic 5
represented in the form of objects as used in
object-oriented programming.
Types of Data Object databases are different from relational databases
Models which are table-oriented.
Object-relational databases are a hybrid of both
approaches.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Network Model
Topic 5
Types of Data
Models
[Link]
Venkata Rami Reddy Ch Dept of CSE
Schemas, Instances, and Database
State
• Database Schema refers to the overall structure of a
database.
• The description of a database is called the database
Sub topic 5 schema, which is specified during database design and is
not expected to change frequently
Schema Diagram:
Schema
Student
Course
Teacher
[Link]
Venkata Rami Reddy Ch Dept of CSE
Instance:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Levels of Abstraction or Three-Schema
architecture:
Topic 6
Three-Schema
architecture
3-Schema Architec
ture
[Link]
Venkata Rami Reddy Ch Dept of CSE
Internal level or internal schema:
• The internal schema uses a physical data
model that describes the complete details of
Topic 6 physical data storage and access strategies.
Three-Schema
• It tells us what data is stored in the database
architecture
and how.
• Physical Storage structures includes B-trees,
B+ tree and hash tables etc.
• Some of the access strategies are primary
index, single-level index and multilevel index
[Link]
Venkata Rami Reddy Ch Dept of CSE
Conceptual level or conceptual schema
Three-Schema
• The conceptual schema hides the details of
architecture
physical storage structures and concentrates
on describing entities, data types,
relationships, user operations, and
constraints.
• Usually, a representational data model is
used to describe the conceptual schema
when a database system is implemented.
[Link]
Venkata Rami Reddy Ch Dept of CSE
External level or External View:
Topic 6
• The external or view level includes a number
user views.
Three-Schema • The external level is the view that the
architecture individual user of the database has.
• Each external schema describes the part of
the database that a particular user group is
interested in and hides the rest of the
database from that user group.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Independence
[Link]
Venkata Rami Reddy Ch Dept of CSE
Physical data independence:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Logical data independence:
[Link]
Venkata Rami Reddy Ch Dept of CSE
DBMS architecture
[Link]
Venkata Rami Reddy Ch Dept of CSE
Architecture Diagram
Topic 7
DBMS
architecture
Dbms Architecture
[Link]
Venkata Rami Reddy Ch Dept of CSE
Query Processor Components
•
The storage manager components include:
File manager:
Topic 7 • It manages the allocation of disk-space for
the storage of DBMS files.
DBMS architecture Buffer manager:
• It is responsible for fetching data from disk
storage into main memory buffers for
processing, and then writing the updated
data back onto the disk.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Storage Manager Components
[Link]
Venkata Rami Reddy Ch Dept of CSE
Data Components
Data files:
• Which stores the database itself.
Topic 7 Data dictionary:
• It is a metadata file, which stores the database
DBMS architecture schema. It stores metadata about the structure
of the database.
Indices:
• It can provide fast access to data items. Like
the index in this textbook, a database index
provides pointers to those data items that hold
a particular value.
Statistical data:
• It stores the statistical information about
processing of previous queries.
[Link]
Venkata Rami Reddy Ch Dept of CSE
CLASSIFICATION OF DATABASE
MANAGEMENT SYSTEMS
Several criteria are normally used to classify
DBMSs are
Topic 8 1. Based on data model
2. No of users supported by the System
CLASSIFICATION
OF DATABASE
3. Number of sites over which the database is
MANAGEMENT distributed
SYSTEMS 4. Cost
5. Based on purpose
[Link]
Venkata Rami Reddy Ch Dept of CSE
[Link] on Data Model:
[Link]
Venkata Rami Reddy Ch Dept of CSE
[Link] of users supported by the System::
[Link]
Venkata Rami Reddy Ch Dept of CSE
3. Number of sites over which the database is
distributed
[Link]
Venkata Rami Reddy Ch Dept of CSE
4. Cost
[Link]
Venkata Rami Reddy Ch Dept of CSE
5. General-purpose vs. special-purpose
[Link]
Venkata Rami Reddy Ch Dept of CSE
Phases of Database Design
Phases of
Database Design Conceptual Design
Logical Design
Data Model Mapping
Physical Design
[Link]
Venkata Rami Reddy Ch Dept of CSE
Requirements collection and analysis
[Link]
Venkata Rami Reddy Ch Dept of CSE
Conceptual Design
[Link]
Venkata Rami Reddy Ch Dept of CSE
Logical Design
• The next step in database design is the actual
implementation of the database, using a commercial
DBMS.
Topic 9
• Most current commercial DBMSs use an
implementation data model such as the relational or
Phases of
the object-relational database model.
Database Design
• In this phase the conceptual schema is transformed
from the high-level data model into the implementation
data model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Characteristics
Physical Design
•The last step is the physical design phase, during which
Topic 9 the internal storage structures, indexes, access paths,
and file organizations for the database files are specified.
Phases of
Database Design
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity-Relationship model
• Entity-Relationship model is a popular high,
level conceptual data model.
Topic 10
• ER Model is best used for the conceptual design
of database.
ER Model • The ER model describes data as entities,
relationships, and attributes.
ER-Model • ER Model is based on: Entities and
their attributes, Relationships among entities
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Attributes
•
Attribute describes property or characteristics
of an entity
Topic 10
• These are the properties of the entity.
ER Model
• For example, an employee entity may be
described by the employee's name, age,
address, salary, and job. A particular entity
will have a value for each of its attribute
Entity_20Relation Types of Attributes
ship_20Model_mo
dule4_-1_PIP.mp4 1. simple versus composite
2. single-valued versus multivalued
3. stored versus derived.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Composite versus Simple (Atomic) Attributes
[Link]
Venkata Rami Reddy Ch Dept of CSE
Single-Valued versus Multivalued Attributes
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity Types and Entity Sets
[Link]
Venkata Rami Reddy Ch Dept of CSE
Entity Types and Entity Sets
[Link]
Venkata Rami Reddy Ch Dept of CSE
Key Attributes of an Entity Type
• An important constraint on the entities of an
entity type is the key or uniqueness
constraint on attributes.
Topic 10
• An entity type usually has an attribute
ER Model whose values are distinct for each
individual entity in the entity set. Such an
attribute is called a key attribute, and its
values can be used to identify each entity
Mod_207.1.mp4 uniquely.
• For the Employee entity type typical key
attribute is Empid.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Notations of ER Diagrams
Notations of ER Diagrams
Topic 10
ER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Example Database Application: COMPANY
Each employee
• has a name
Topic 10 • has a SSN that uniquely identifies her/him
• has an address
ER Model • has a salary
• has a sex
• has a birthdate
• has a direct supervisor
• has a set of dependents
• is assigned to one department
• works some number of hours per week on
each of a set of projects (which need not
all be controlled by the same department)
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cont...
Topic 10
ER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relationship:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relationship diagram:
Topic 10
ER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relationship Type:
ER Model
• For example, the WORKS_ON relationship
type in which EMPLOYEEs and PROJECTs
participate, or the MANAGES relationship
type in which EMPLOYEEs and
DEPARTMENTs participate.
.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relationship set
Topic 10
ER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Degree of a Relationship Type
[Link]
Venkata Rami Reddy Ch Dept of CSE
Relationship Attributes
[Link]
Venkata Rami Reddy Ch Dept of CSE
Constraints on Relationships
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cardinality Ratios for Binary Relationships
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cardinality Ratios for Binary Relationships
[Link]
Venkata Rami Reddy Ch Dept of CSE
One to One (1:1)
•An entity in A is associated with at most one entity
in B, and an entity in B is associated with at most
Topic 10 one entity in A.
•An example of a 1:1 binary relationship is
ER Model MANAGES which relates a department entity to the
employee who manages that department. This
represents the mini-world constraints that at any
point in time-an employee can manage only one
department and a department has only one
manager.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cardinality Ratios
• One to Many: An entity in A is associated with many
entities in B and an entity in B is associated with at
most one entity in A.
Topic 10
• Many to One: An entity in A is associated with at
most one entity in B, an entity in B is associated with
ER Model many entities in A.
• Ex: an employee works in a single department but a
department consists of many employees.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Cardinality Ratios
[Link]
Venkata Rami Reddy Ch Dept of CSE
Participation Constraints
[Link]
Venkata Rami Reddy Ch Dept of CSE
Characteristics
total participation:
Topic 10
• If a company policy states that every
employee must work for a department, then
ER Model an employee entity can exist only if it
participates in at least one WORKS_FOR
relationship instance Thus, the participation
of EMPLOYEE in WORKS_FOR is called
total participation, meaning that every entity
in "the total set" of employee entities must be
related to a department entity via
WORKS_FOR. Total participation is also
called existence dependency.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Partial participation:
[Link]
Venkata Rami Reddy Ch Dept of CSE
WEAK ENTITY TYPES
ER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
EER (Enhanced Entity Relationship)
Model
• The ER model is generally sufficient for
"traditional" database applications.
Topic 11 • But more recent applications of DB technology
(e.g., CAD/CAM, telecommunication,
EER Model images/graphics, multimedia, data
mining/warehousing, geographic info systems)
cry out for a richer model.
EER.mp4
• The EER (Enhanced ER) model includes all the
modeling concepts of the ER model ,In addition,
it includes the concepts of subclass and
superclass and the related concepts of
specialization and generalization.
[Link]
Venkata Rami Reddy Ch Dept of CSE
SUBCLASSES, SUPERCLASSES AND
INHERITANCE
[Link]
Venkata Rami Reddy Ch Dept of CSE
SUBCLASSES, SUPERCLASSES AND
INHERITANCE
Topic 11
[Link]
Venkata Rami Reddy Ch Dept of CSE
SUBCLASSES, SUPERCLASSES AND
INHERITANCE
[Link]
Venkata Rami Reddy Ch Dept of CSE
SUBCLASSES, SUPERCLASSES AND
INHERITANCE
• The set of entities in each of the latter groupings is a
subset of the entities that belong to the EMPLOYEE
Topic 11 entity set, meaning that every entity that is a member of
one of these sub groupings is also an employee.
EER Model • We call each of these sub groupings a subclass of the
EMPLOYEE entity type, and the EMPLOYEE entity type
is called the super class for each of these subclasses
• We call the relationship between a super class and
anyone of its subclasses a super class/subclass or
simply class/subclass relationship.
• In our previous example, EMPLOYEE/SECRETARY
and EMPLOYEE/TECHNICIAN are two class/subclass
relationships.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Specialization
[Link]
Venkata Rami Reddy Ch Dept of CSE
Specialization
Topic 11
[Link]
Venkata Rami Reddy Ch Dept of CSE
Generalization
[Link]
Venkata Rami Reddy Ch Dept of CSE
Generalization
• Hence, in below Figure we can view {CAR,
TRUCK} as a specialization of VEHICLE, rather
Topic 11 than viewing VEHICLE as a generalization of
CAR and TRUCK.
EER Model • Similarly, in previous figure we can view
EMPLOYEE as a generalization of SECRETARY,
TECHNICIAN, and ENGINEER.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Generalization
Topic 11
NPTEL VIDEOS
[Link]
Venkata Rami Reddy Ch Dept of CSE
Generalization
Topic 11
EER Model
[Link]
Venkata Rami Reddy Ch Dept of CSE
Constraints on specialization
[Link]
Venkata Rami Reddy Ch Dept of CSE
Disjointness constraint
[Link]
Venkata Rami Reddy Ch Dept of CSE
completeness constraint
[Link]
Venkata Rami Reddy Ch Dept of CSE
completeness constraint
[Link]
Venkata Rami Reddy Ch Dept of CSE
Assignment Questions:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Assignment Questions:
[Link]
Venkata Rami Reddy Ch Dept of CSE
Gate Questions
[Link]
Venkata Rami Reddy Ch Dept of CSE
Gate Questions
Answer (A)
Explanation:
Many-to-one and one-to-many relationship
sets that are total on the many-side can be
represented by adding an extra attribute to the
“many” side, containing the primary key of the
“one” side. Since R1 is many to one and
participation of M is total, M and R1 can be
combined to form the table {M1, M2, M3, P1}.
N is a week entity set, so it can be combined
with P.
[Link]
Venkata Rami Reddy Ch Dept of CSE
Gate Questions
[Link]
Venkata Rami Reddy Ch Dept of CSE
Gate Questions
[Link]
Venkata Rami Reddy Ch Dept of CSE
Gate Questions
Answer (C)
Explanation:
The term ‘entity’ belongs to ER model and the
term ‘relational table’ belongs to relational
model.
A and B both are true. ER model supports
both multi valued and composite attributes
(C) is false and (D) is true. In Relation model,
an entry in relational table can have exactly
one value or a NULL.
[Link]
Venkata Rami Reddy Ch Dept of CSE