Note G11 IT 2nd Sem 2017EC PDF
Note G11 IT 2nd Sem 2017EC PDF
C ----------------------
UNIT 3
DATABASE MANAGEMENT
Unit Overview
Database management is a method used to organize data in a more effective way for easy management and
use of data. In this unit you will learn the basics of database modelling and management. The unit covers
concept of database, file- based and database approaches, relational data models, relational database, and
database management with Microsoft Access.
```````````````````````````````````````````````````````````````````````````````````````````
[ Page 1 of 4 ]
-----------------------[ Grade 11 _ IT Note _ Unit 3 _ DATABASE MANAGEMENT _ 2017 E.C ----------------------
DBMS retrieves data that matches the queries and replies retrieved data to the application programs.The
database approach to data management provides many advantages to the organization. Some of the
advantages are:
• Data independence: A database is created to store all organization data and support all users of the
organization. Each user or department does not need to manage its own isolated data.
• Data sharing: all organization’s data is stored in one central database. DBMS allows this central database
to be accessed by different users.
• Avoiding data redundancy: Isolated departmental files are stored in one central database. The DBMS
can retrieve data from multiple tables so as to meet the requirement of different database users or
application programs.
• Improved data security: Data in the database is accessed only by authorized users. Only users who are
given data access right can access and modify data in the database.
• Attributes are properties of an entity that are used to differentiate one entity from other entity. For
example, customer entity may have customer id, name, gender and address as its attributes. On the other
hand, book entity may have author name, book title and publication year as its attributes. The two entities
have different attributes because they are different entities.
• A relationship is an association between entities. For example, customer has account in a bank. The verb
‘has’ indicates the relationship between customer and bank account entities.
Relational databases split data among two or more tables. Access uses a linking field, called a foreign key.
Relationship types
There is more than one type of table relationship in Access. When you relate two tables, you can choose one
of three possible relationship types.
1. One-to-one relationship: An instance of an entity has only one instance in the other entity with which it
is associated. For example, a country and a capital city. A country is associated with one capital city, and a
capital city is associated with only one country.
```````````````````````````````````````````````````````````````````````````````````````````
[ Page 2 of 4 ]
-----------------------[ Grade 11 _ IT Note _ Unit 3 _ DATABASE MANAGEMENT _ 2017 E.C ----------------------
Notes
Instance of an entity refers to a single occurrence of an entity. For example, “Addis Ababa” is an instance of
the entity “City”.
2. One-to-many relationship: An instance in one entity is associated with many instances in the other
related entity. For example, a department called ‘Computer Science’ is associated with multiple
students.One-to-many relationship is the default and the most common type of relationship.
3. Many-to-many relationship: Instances on both sides of the relationship are associated with multiple
instances of the other entity. For example, an employee may work in multiple projects. At the same time, a
project may have multiple employees assigned to it.
The above figure shows, student entity has student _id, name, age and address attributes. On the other hand,
book entity has book _id, book _title, publication _ year attributes. The two entities are related by ‘borrows’
relationship.
```````````````````````````````````````````````````````````````````````````````````````````
[ Page 3 of 4 ]
-----------------------[ Grade 11 _ IT Note _ Unit 3 _ DATABASE MANAGEMENT _ 2017 E.C ----------------------
of data. These rows in the relation denote a real-world entity. The columns in a relation, also known as
attributes or fields, are used to describe the properties of relations.
```````````````````````````````````````````````````````````````````````````````````````````
[ Page 4 of 4 ]