0% found this document useful (0 votes)
15 views15 pages

Unit 1

The document provides an overview of Database Management Systems (DBMS), defining key concepts such as data, schema, and the advantages of using a DBMS, including data integrity, security, and consistency. It discusses various types of DBMS, including hierarchical, network, relational, object-oriented, and object-relational models, along with their characteristics and applications. Additionally, it introduces data models like the Entity-Relationship model and the relational model, emphasizing their importance in structuring and managing data effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views15 pages

Unit 1

The document provides an overview of Database Management Systems (DBMS), defining key concepts such as data, schema, and the advantages of using a DBMS, including data integrity, security, and consistency. It discusses various types of DBMS, including hierarchical, network, relational, object-oriented, and object-relational models, along with their characteristics and applications. Additionally, it introduces data models like the Entity-Relationship model and the relational model, emphasizing their importance in structuring and managing data effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

INTRODUCTION TO DATABASE:
Data are binary computer representations of stored logical entities. They are distinct pieces of
information usually formatted in a special way. Data is the plural of datum-a single piece of
information.

In DBMS data files are the files that store database information whereas other files such as index files
and data dictionaries store administrative information known as metadata.

 Relationships represents a correspondence between the various data elements.


 Constraints are predicates that define correct database states.
 Schema describes the organization of data and relationships within the database.

Data Items

Relationships

Constraints

Schema

Fig 1.1: Components of a Database

External Schema 1 External Schema 1 External Schema n

Global Conceptual Schema

Internal Schema

Physical Fig 1.2: Organization of a Database


Database

1
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

The Schema defines various views of the database for the use of the various components of the DBMS
and for the applications’ security. A schema separates the physical aspects of data storage from the
logical aspects of data representation.

 The Internal schema defines how and where data are organized in physical data storage.
 The Conceptual schema defines the stored data structures in terms of database model used.
 The External schema defines a view or views of the database for particular users.

A Database Management System provides services for accessing the database while maintaining the
required correctness and consistency of the stored data.

A database is a collection of data designed to be used by different people. It is a collection of


interrelated data stored together with controlled redundancy to serve one or more applications in an
optimal fashion. The data is stored in such a fashion that they are interdependent of the programs of
people using the data. A common and controlled approach is used in adding new data and modifying
and retrieving existing data within the database.

Traditional databases are organized by fields, records and files.

 A Field is a single piece of information


 A Record is one complete set of fields and
 A File is a collection of records.

ADVANTAGES OF USING A DATABASE MANAGEMENT SYSTEM


1. Reducing Data Redundancy: The file-based data management systems contained multiple
files that were stored in many different locations in a system or even across multiple systems.
Because of this, there were sometimes multiple copies of the same file which lead to data
redundancy.
This is prevented in a database as there is a single database and any change in it is reflected
immediately. Because of this, there is no chance of encountering duplicate data.
2. Sharing of Data: In a database, the users of the database can share the data among
themselves. There are various levels of authorization to access the data, and consequently the
data can only be shared based on the correct authorization protocols being followed.
3. Data Integrity: Data integrity means that the data is accurate and consistent in the database.
Data Integrity is very important as there are multiple databases in a DBMS. All of these
databases contain data that is visible to multiple users. So it is necessary to ensure that the
data is correct and consistent in all the databases and for all the users.
4. Data Security: Data Security is vital concept in a database. Only authorized users should be
allowed to access the database and their identity should be authenticated using a username
and password. Unauthorized users should not be allowed to access the database under any
circumstances as it violates the integrity constraints.
5. Privacy: The privacy rule in a database means only the authorized users can access a database
according to its privacy constraints. There are levels of database access and a user can only
view the data he is allowed to. For example - In social networking sites, access constraints are
different for different accounts a user may want to access.
6. Backup and Recovery: Database Management System automatically takes care of backup and
recovery. The users don't need to backup data periodically because this is taken care of by the

2
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

DBMS. Moreover, it also restores the database after a crash or system failure to its previous
condition.
7. Data Consistency: Data consistency is ensured in a database because there is no data
redundancy. All data appears consistently across the database and the data is same for all the
users viewing the database. Moreover, any changes made to the database are immediately
reflected to all the users and there is no data inconsistency.

CHARACTERISTICS OF DATA IN A DATABASE


1. Shared: Data in a database are shared among different users and applications.
2. Persistence: Data in a database exists permanently.
3. Validity/Integrity/Correctness: Data should be correct with respect to the world entity that
they represent.
4. Security: Data should be protected from unauthorized access.
5. Consistency: Whenever more than one data element in a database represent related real-
world values, the values should be consistent with respect to the relationship.
6. Non-redundancy: No two data items in a database should represent the same real world
entity.
7. Independence: The three levels in the schema( internal, conceptual and external) should be
independent of each other so that the changes in the schema at one level should not affect
the other levels.

DATABASE MANAGEMENT SYSTEM


A database management system (DBMS) is a collection of programs that enables you to store, modify
and extract information from a database. A database management system is a piece of software that
provides services for accessing a database while maintaining all the required features of the data.
There are different types of DBMSs ranging from small systems that run on personal computers to
huge systems that run on mainframes.
Examples of database applications:

 Computerized library systems

 Automated Teller Machines

 Flight reservation systems

 Computerized parts inventory systems.

SERVICES PROVIDED BY DATABASE MANAGEMENT SYSTEMS:


1. Transaction Management: A transaction is a sequence of database operations that represents
a logical unit of work and that accesses a database and transforms it from one state to
another. A transaction can update, delete and modify records. When the DBMS does a
‘commit’ the changes made by the transaction are made permanent. You can perform a
rollback to return the database to its original state.

3
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

2. Concurrency Control: Concurrency control is the database management activity of


coordinating the actions of database manipulation processes that operate concurrently that
access shared data and can potentially interfere with one another. The goal of an ideal
concurrency management mechanism is to allow concurrency while maintaining the
consistency of the shared data.
3. Recovery Management: The recovery management system in a database ensures that the
aborted or failed transactions create no adverse effects on the database or the other
transactions. Recovery mechanisms in a DBMS make sure that the database is returned to a
consistent state after a transaction fails or aborts.
4. Security Management: Security refers to the protection of data against unauthorized access.
Security mechanisms of a DBMS make sure that only authorized users are given access to the
data in the database. The level of access for each user and the operations that each user can
perform on the data will be monitored and controlled by the DBMS depending on the access
privileges of the users.
5. Language Interface: The DBMS provides support languages used for the definition and
manipulation of the data in the database. The data structures are created using the data
definition language commands. The data manipulation is done using the data manipulation
commands. By providing the language support for data definition and manipulation the DBMS
creates an environment where the user can do their jobs without worrying about the physical
implementation.
6. Storage Management: The DBMS provides a mechanism for management of permanent
storage of the data. The internal schema defines how the data should be stored by the storage
management mechanism and the storage manager interfaces with the operating system to
access the physical storage.
7. Data Catalog Management: Data Catalog or Data Dictionary is a system database that
contains descriptions of the data in the database(metadata). It contains information about
data, relationships, constraints and the entire schema that organize these features into a
unified database. The data catalog can be queried to get information about the structure of
the database.

TYPES OF DATABASE MANAGEMENT SYSTEMS:


1. HIERARCHICAL MODEL: In a hierarchical database management system (hierarchical DBMSs)
model, data is stored in a parent-children relationship node. In a hierarchical database,
besides actual data, records also contain information about their groups of parent/child
relationships.
In a hierarchical database model, data is organized into a tree-like structure. The data is stored
in the form of a collection of fields where each field contains only one value. The records are
linked to each other via links into a parent-children relationship. In a hierarchical database
model, each child record has only one parent. A parent can have multiple children.

To retrieve a field’s data, we need to traverse through each tree until the record is found.

The hierarchical database system structure was developed by IBM in the early 1960s. While
the hierarchical structure is simple, it is inflexible due to the parent-child one-to-many
relationship. Hierarchical databases are widely used to build high performance and availability
applications usually in the banking and telecommunications industries.

4
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

The IBM Information Management System (IMS) and Windows Registry are two popular
examples of hierarchical databases.

Advantage
A hierarchical database can be accessed and updated rapidly. As shown in the figure above,
its model structure is like a tree and the relationships between records are defined in advance.
This feature is a double-edged sword.

Disadvantage
This type of database structure is that each child in the tree may have only one parent.
Relationships or linkages between children are not permitted, even if they make sense from
a logical standpoint. Hierarchical databases are like this in their design. Adding a new field or
record requires that the entire database be redefined.

2. NETWORK MODEL: The Network Model replaces the hierarchical tree with a graph thus
allowing more general connections among the nodes. The main difference of the network
model from the hierarchical model is its ability to handle many-to-many relationships(n:n). Or
in other words, it allows records to have more than one parent. Suppose an employee works
for two departments. The strict hierarchical arrangement is not possible here and the tree
becomes a more generalized graph-a network. Logical proximity fails because you cannot
place a data item simultaneously in two locations in the list.
It is possible to handle such situations in a hierarchical model, it becomes more complicated
and difficult to comprehend. The network model was evolved specifically to handle non-
hierarchical relationships.
In network database terminology, a relationship is a set. Each set is made up of at least two
types of records; an owner record(equivalent to the parent in the hierarchical model) and a
member record( similar to the child record in the hierarchical model). The difference between
the hierarchical model and the network model is that the network model allows a record to
appear as a member in more than a set thus facilitating many-to-many relationships.

5
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

3. RELATIONAL MODEL: In a relational database management systems (RDBMS), the


relationship between data is relational and data is stored in tabular form of columns and rows.
Each column if a table represents an attribute and each row in a table represents a record.
Each field in a table represents a data value.

Structured Query Language (SQL) is the language used to query RDBMS, including inserting,
updating, deleting, and searching records. Relational databases work on each table that has a
key field that uniquely indicates each row. These key fields can be used to connect one table
of data to another.

Relational databases are the most popular and widely used databases. Some of the popular
DDBMS are Oracle, SQL Server, MySQL, SQLite, and IBM DB2.

The relational database has two major advantages:

1. Relational databases can be used with little or no training.


2. Database entries can be modified without specifying the entire body.

4. OBJECT-ORIENTED MODEL: Object database is quite different, for the most part, object
database design is a fundamental part of the overall application design process. The object
classes used by the programming language are the classes used by the ODBMS. Because their
models are consistent, there is no need to transform the program’s object model to something
unique for the database manager.
Object-Oriented model represents an entity as a class. A class represents both object
attributes as well as the behavior of the entity. For example a book class will have not only
the attributes such as ISBN, Title, Author, etc. but procedures that imitate actions expected of
a book such as UpdatePrice(Updating the price). Instances of class-object correspond to
individual books. Within an object the class attributes takes specific values, which distinguish
one book (object) from another. However the behavior patterns of the class is shared by all
the objects belonging to the class.
Object- oriented databases manage objects(abstract data types). An object-oriented DBMS,
OODBMS is suited for multimedia applications as well as data with complex relationships that
are difficult to model and process in a relational DBMS. Because any type of data can be

6
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

stored. OODBMS allows for fully integrated databases that hold data, text, pictures, voice and
video.
5. OBJECT-RELATIONAL MODEL: Object-relational systems combine the advantages of modern
object-oriented programming languages with relational database features such as multiple
views of data and a high-level, nonprocedural query language. An object relational system is
a good long-term investment, because its extenders provide the capabilities you need to
manage today’s specialized objects, and its object infrastructure gives you the ability to define
new types, functions, and rules to deal with the evolving needs of today’s businesses. Some
of the object-relational systems available in the market are IBM’s DB2 Universal Servers,
Oracle Corporations Oracle8, Microsoft Corporation SQL Server 7 and so on.

DATA MODELS
Data models define how the logical structure of a database is modeled. Data Models are fundamental
entities to introduce abstraction in a DBMS. Data models define how data is connected to each other
and how they are processed and stored inside the system.
Entity-Relationship Model
o ER model stands for an Entity-Relationship model. It is a high-level data model. This model is
used to define the data elements and relationship for a specified system.
o It develops a conceptual design for the database. It also develops a very simple and easy to
design view of data.
o In ER modeling, the database structure is portrayed as a diagram called an entity-relationship
diagram.

Entity-Relationship (ER) Model is based on the notion of real-world entities and relationships among
them. While formulating real-world scenario into the database model, the ER Model creates entity
set, relationship set, general attributes and constraints.
ER Model is best used for the conceptual design of a database.
ER Model is based on −
 Entities and their attributes.
 Relationships among entities.
These concepts are explained below.

 Entity − An en ty in an ER Model is a real-world entity having properties called attributes.


Every attribute is defined by its set of values called domain. For example, in a school

7
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

database, a student is considered as an entity. Student has various attributes like name, age,
class, etc.
 Relationship − The logical associa on among en es is called relationship. Relationships are
mapped with entities in various ways. Mapping cardinalities define the number of association
between two entities.
Mapping cardinalities −

o one to one
o one to many
o many to one
o many to many
Relational Model
The most popular data model in DBMS is the Relational Model. It is more scientific a model than
others. This model is based on first-order predicate logic and defines a table as an n-ary relation.

The main highlights of this model are −

 Data is stored in tables called relations.


 Relations can be normalized.
 In normalized relations, values saved are atomic values.
 Each row in a relation contains a unique value.
 Each column in a relation contains values from a same domain.

8
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

Relational Model represents how data is stored in Relational Databases. A relational database stores
data in the form of relations (tables). Consider a relation STUDENT with attributes ROLL_NO, NAME,
ADDRESS, PHONE and AGE shown in Table 1.

STUDENT
ROLL_NO NAME ADDRESS PHONE AGE

1 RAM DELHI 9455123451 18

2 RAMESH GURGAON 9652431543 18

3 SUJIT ROHTAK 9156253131 20

4 SURESH DELHI 18

IMPORTANT TERMINOLOGIES
1. Attribute: Attributes are the properties that define a relation. e.g.; ROLL_NO, NAME
2. Relation Schema: A relation schema represents name of the relation with its attributes. e.g.;
STUDENT (ROLL_NO, NAME, ADDRESS, PHONE and AGE) is relation schema for STUDENT. If a
schema has more than 1 relation, it is called Relational Schema.
3. Tuple: Each row in the relation is known as tuple. The above relation contains 4 tuples, one of
which is shown as:
1 RAM DELHI 9455123451 18

4. Relation Instance: The set of tuples of a relation at a particular instance of time is called as
relation instance. Table 1 shows the relation instance of STUDENT at a particular time. It can
change whenever there is insertion, deletion or updation in the database.
5. Degree: The number of attributes in the relation is known as degree of the relation.
The STUDENT relation defined above has degree 5.
6. Cardinality: The number of tuples in a relation is known as cardinality. The STUDENT relation
defined above has cardinality 4.
7. Column: Column represents the set of values for a particular attribute. The column ROLL_NO is
extracted from relation STUDENT.

ROLL_NO

9
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

8. NULL Values: The value which is not known or unavailable is called NULL value. It is represented
by blank space. e.g.; PHONE of STUDENT having ROLL_NO 4 is NULL.

SCHEMAS AND INSTANCES


A database schema is the skeleton structure that represents the logical view of the entire
database. It defines how the data is organized and how the relations among them are associated. It
formulates all the constraints that are to be applied on the data.
A database schema defines its entities and the relationship among them. It contains a descriptive
detail of the database, which can be depicted by means of schema diagrams. It’s the database
designers who design the schema to help programmers understand the database and make it useful.

A database schema can be divided broadly into two categories −


 Physical Database Schema − This schema pertains to the actual storage of data and its form
of storage like files, indices, etc. It defines how the data will be stored in a secondary storage.
 Logical Database Schema − This schema defines all the logical constraints that need to be
applied on the data stored. It defines tables, views, and integrity constraints.
Database Instance
The data stored in database at a particular moment of time is called instance of database. Database
schema defines the variable declarations in tables that belong to a particular database; the value of
these variables at a moment of time is called the instance of that database.

10
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

For example, lets say we have a single table student in the database, today the table has 100 records,
so today the instance of the database has 100 records. Lets say we are going to add another 100
records in this table by tomorrow so the instance of database tomorrow will have 200 records in table.
In short, at a particular moment the data stored in database is called the instance, that changes over
time when we add or delete data from the database.

CONCEPTUAL, PHYSICAL AND LOGICAL DATABASE MODELS


1. EXTERNAL OR LOGICAL LEVEL: This is the highest and outermost layer and presents varying
external views of the application to different users. Differing external views can use the same
conceptual views to satisfy the differing needs of different users. The external views, to a
certain extent compensate for the changes in the conceptual schema. This de-coupling of the
external level and the conceptual level is called logical data independence. The use of
external models have some major advantages:
a. In the absence of the external model, each application program would have been
forced to include the entire set of relationships within a database. This would have
made the application development very difficult and cumbersome
b. The logical independence obtained by creating different views for the different
applications simplifies the database designer’s task by making it easy to identify the
data required to support each application’s operation.
c. The external model, by creating separate views of the database to the different users
helps in ensuring the database security.
2. CONCEPTUAL LEVEL:
This model represents a global view of the data. It is an enterprise-wide representation of
data. As we have seen the conceptual model is the basis for the identification and description
of the main data objects avoiding the details. The most widely used conceptual model is the
Entity-Relationship Model (E-R model). The E-R model is represented using an E-R
diagram(ERD). The ERD is a visual representation of the E-R model and thus an example of a
conceptual schema. Thus an ERD which provides a visual representation of the conceptual
model, gives an easy to understand bird’s eye view of the database environment. The
conceptual model is independent of both software and hardware.

3. PHYSICAL LEVEL: At the lowest level, certain physical components organize and store
the raw data. Physical database design is the process of producing a description of
the implementation of the database on secondary storage; it describes the storage
structures and access methods used to achieve efficient access to the data. It is during
the physical database design process that the database designer decides how the
database is to be implemented.

DBMS ARCHITECTURE
The design of a DBMS depends on its architecture. It can be centralized or decentralized or
hierarchical. The architecture of a DBMS can be seen as either single tier or multi-tier. An n-
tier architecture divides the whole system into related but independent n modules, which
can be independently modified, altered, changed, or replaced.
In 1-tier architecture, the DBMS is the only entity where the user directly sits on the DBMS
and uses it. Any changes done here will directly be done on the DBMS itself. It does not

11
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

provide handy tools for end-users. Database designers and programmers normally prefer to
use single-tier architecture.
If the architecture of DBMS is 2-tier, then it must have an application through which the
DBMS can be accessed. Programmers use 2-tier architecture where they access the DBMS
by means of an application. Here the application tier is entirely independent of the database
in terms of operation, design, and programming.
3-tier Architecture
A 3-tier architecture separates its tiers from each other based on the complexity of the users
and how they use the data present in the database. It is the most widely used architecture
to design a DBMS.

 Database (Data) Tier − At this er, the database resides along with its query
processing languages. We also have the relations that define the data and their
constraints at this level.
 Application (Middle) Tier − At this er reside the applica on server and the programs
that access the database. For a user, this application tier presents an abstracted view
of the database. End-users are unaware of any existence of the database beyond the
application. At the other end, the database tier is not aware of any other user beyond
the application tier. Hence, the application layer sits in the middle and acts as a
mediator between the end-user and the database.
 User (Presentation) Tier − End-users operate on this tier and they know nothing
about any existence of the database beyond this layer. At this layer, multiple views
of the database can be provided by the application. All views are generated by
applications that reside in the application tier.

DATA INDEPENDENCE
A database system normally contains a lot of data in addition to users’ data. For example, it
stores data about data, known as metadata, to locate and retrieve data easily. It is rather
difficult to modify or update a set of metadata once it is stored in the database. But as a
DBMS expands, it needs to change over time to satisfy the requirements of the users. If the

12
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

entire data is dependent, it would become a tedious and highly complex job.

Metadata itself follows a layered architecture, so that when we change data at one layer, it
does not affect the data at another level. This data is independent but mapped to each other.
 Logical Data Independence
Logical data is data about database, that is, it stores information about how data is
managed inside. For example, a table (relation) stored in the database and all its
constraints, applied on that relation.
Logical data independence is a kind of mechanism, which liberalizes itself from actual
data stored on the disk. If we do some changes on table format, it should not change the
data residing on the disk.
 Physical Data Independence
All the schemas are logical, and the actual data is stored in bit format on the disk. Physical
data independence is the power to change the physical data without impacting the
schema or logical data.
For example, in case we want to change or upgrade the storage system itself − suppose
we want to replace hard-disks with SSD − it should not have any impact on the logical
data or schemas.

DESIGN CONSTRAINTS
Database systems are designed to represent the real world systems. The database systems
require certain controls and limits for it to truly represent the real world system’s behavior.
In other words, Constraints enforce limits to the data or type of data that can be
inserted/updated/deleted from a table. The whole purpose of constraints is to maintain the data
integrity during an update/delete/insert into a table.
Types of Constraints:
1. Structural Constraints: The structure of the information within the database gives an idea
about entities in the database. For example, simple data structures are represented using
simple structures while complex data structures will need advanced structures. Structural
constraints are specified to force the placement of information into structures that best
matches the application.

13
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

2. Type Constraints: A type constraint limits the application to only one representation of
information for an entity’s attribute. For example, the database designer might want to
limit the name attribute to a fixed length character string, age, number etc.
3. Range Constraints: limits the values an attribute can take. It refers to the possible values
a particular data item can have. Range constraints can be used to limit the value of a
particular attribute to be in range.
4. Relationship Constraints: represents the relationships on values between entities. For
example there could be a relationship constraint between the entities MANAGER and
EMPLOYEE that the maximum bonus of the manager should not be greater than 6 times
that of the employees.
5. Temporal Constraints: These indicates the time period for which some information is
valid. For example: The value of the attribute sales tax or excise duty is valid only for a
specific period.

FUNCTIONAL DEPENDENCIES
Functional dependency in DBMS, as the name suggests is a relationship between attributes of a table
dependent on each other. Introduced by E. F. Codd, it helps in preventing data redundancy and gets
to know about bad designs.
To understand the concept thoroughly, let us consider P is a relation with attributes A and B.
Functional Dependency is represented by -> (arrow sign)
Then the following will represent the functional dependency between attributes with an arrow sign:
A -> B

Above suggests the following:

Example
The following is an example that would make it easier to understand functional dependency:
We have a <Department> table with two attributes: DeptId and DeptName.

DeptId = Department ID
DeptName = Department Name

14
UNIT-1 BCA402: DATABASE MANAGEMENT SYSTEM(DBMS)

The DeptId is our primary key. Here, DeptId uniquely identifies the DeptName attribute. This is
because if you want to know the department name, then at first you need to have the DeptId.

DeptId DeptName
001 Finance
002 Marketing
003 HR

Therefore, the above functional dependency between DeptId and DeptName can be determined
as DeptName is functionally dependent on Deptid:

DeptId -> DeptName

Types of Functional Dependency


Functional Dependency has three forms:

1. Trivial Functional Dependency


2. Non-Trivial Functional Dependency
3. Completely Non-Trivial Functional Dependency

Let us begin with Trivial Functional Dependency:


Trivial Functional Dependency
It occurs when B is a subset of A in:

A ->B

Example: We are considering the same <Department> table with two attributes to understand the
concept of trivial dependency.

The following is a trivial functional dependency since DeptId is a subset of DeptId and DeptName

{ DeptId, DeptName } -> Dept Id

Non –Trivial Functional Dependency


It occurs when B is not a subset of A in:

A ->B

Example

DeptId -> DeptName

The above is a non-trivial functional dependency since DeptName is a not a subset of DeptId.
Completely Non - Trivial Functional Dependency
It occurs when A intersection B is null in:

A ->B

15

You might also like