Professional Documents
Culture Documents
BEC 1201
Database
Management
Systems
1. Introduction to Database Systems
1.1 Introduction
What is a Data?
Data is the collection of raw facts and figures. It is without any proper meaning.
Data may be collection of words, numbers, graphics or sounds
Eg : Student Data on Admission Forms
When students get admission in a college, they fill admission form. This
form contains raw facts (data of student) like name, father’s name, address
of student etc.
What is an Information?
Processed data is called information. When raw facts and figures are processed
and arranged in some order then they become information. Information has
proper meanings.
Eg : Student Address Labels
Stored data of students can be used to print address labels of students
What is a Database?
Collection of data (related to a particular subject or purpose) that is stored in
a computer system.
Eg : Student Database, Library Database, Payroll Database
- Each child record has only one parent, whereas each parent record can have
one or more child records.
- At the top of hierarchy there is only one entity which is called Root.
- In order to retrieve data from a hierarchical database the whole tree needs to
be traversed starting from the root node.
Network Database Model
- In the network model, entities are organized in a graph structure.
- Allows each record to have multiple parent and child records.
- Entities can be accessed through several paths.
Relational Database Model
- In the relational model, all data is represented in terms of tuples (records),
grouped into relations (tables).
- A table has rows and columns, where rows represent records and columns
represent the attributes.
- Most relational databases use the SQL data definition and query language.
Object Oriented Database Model
- Information is represented in the form of objects as used in object-oriented
programming.
- Each real-world entity is modeled by an object.
- Each object is associated with a unique identifier that makes the object
different from other objects.
- Each object has a set of attributes (properties) and methods (operations)
- The attribute values represent the object’s status.
1.3 Steps of Designing a Database
6 main steps in designing a database
ER Diagram Notations
▪ Entity : Object that we wish to store information.
Entity
Eg : Employee, Department
▪ Week Entity : Entity that cannot be uniquely identified by its attributes alone.
Entity that depends on another entity. Week Entity
▪ Composite Attribute : An attribute can also have their own attributes. Attribute
Eg : Name consist of FirstName and LastName
Entity
▪ Cardinality : How many instances of an entity relate to one instance of another entity.
N Works 1
Employee Department
At
Name
DOB
DeptName
Age FName LName
1.5 Normalizations
- Database Normalization is a technique of organizing the data in the database.
- Database is modified to minimize redundancy and dependency of data.
- Normalization split a large table into smaller tables and define relationships between
data.
record.
Fifth Normal Form (5NF)
- A relation is in 5NF if it is in 4NF and contains no join dependencies.
Eg :