To Databases: Data Bases
To Databases: Data Bases
To Databases: Data Bases
CHAPTER
1 INTRODUCTION
TO DATABASES
LEARNING OBJECTIVES
Category Examples
Physical object Employee, Machine, Book, Client, Student, Item
Abstract object Account, Department
Event Application, Reservation, Invoice, Contract
Location Building, City, State
Table 1.8.2 : Entity
Name
Number Gross Pay
Employee
1 1
Customer CustAcct Account
Order 1 1 Purchase
Transaction
Requisition Order
Raises
Employee M 1
Works IN Department
Order M N
Contains Item
1 N M
N WARE
DEPT PROJECT
HOUSE
Student
Faculty
N
M 1
Registered
Belongs Teaches
To Subject
1
1
1 M N
Student ID
Name
Date Of Birth
Course Advisor
Course Advisor's Telephone
Student
Course ID 1
Course Description 1
Course Instructor 1
Course ID 2
Course Description 2
Course Instructor 2
Table.1.8.4: Student Table(1NF)
The repeating course fields are in conflict with first normal form. To fix the problems created by
such repeating fields, we should place the course information in a separate course table, and then
provide a linking field (most likely Student ID) between the Students Table and the Course Table.
(2) Second Normal Form (2NF): Second Normal Forms break down First Normal Forms,
separating them into different tables by defining successively finer interrelationships between
fields. 2NFs do not include fields that are subsets of fields other than primary (key) field. For
example, say we create a course table(Table.1.8.5) with the structure:
Student ID
Course ID
Course Fee
Course Description
Course Instructor
Table.1.8.5: Course Table
Fields
Names Emp-ID
5000
Emp-Name
Amit
City
Chennai
State
TN
5001 Jaykishan Nagpur MH
Records 5002 Kamini Lucknow UP
(Tuples)
5003 Manish Hyderabad AP
5004 Utpal Delhi HY
Fig. 1.9.1: Relation-Table-Employee
Fig. 1.10.2: DBMS Access with Multiple Clients Fig. 1.10.3: DBMS Access with Multiple
Clients of different type.