Professional Documents
Culture Documents
• POMTAFEDB
• ADFOCEPT
• MEDOFEPT
Process
• DEPT OF MBA.
• DEPT OF CA.
• DEPT OF ME.
Information
• “Information is a message”
• DEPT OF MBA.
• DEPT OF CA.
• DEPT OF ME.
Byte Byte
Bit Bit
Bit Bit
12
File Management – Disadvantages
Lack of flexibility
Data Dependence
‘Lack of data sharing &
Availability
Poor Security
13
Database Concepts
• Database is a collection of data organized to serve
many applications efficiently by centralizing the data
and controlling redundant data.
Egs:
1. A human resources database that stores employee
data related to personnel, payroll and benefits
2. A University database through which university
applications from the Registrar’s office, the Accounting
department, and the Athletics department access data.
14
Eg. A University Database
Class
Registrar’s
Office
Programs
Academic Info
Team data
Employee data
Course Info
Registration data
Sports
Athletics
Programs
dept.
15
Database Management System
• The software that permits an organization to
centralize data, manage them efficiently, and
provide access to the stored data by
application programs.
• It acts as an interface between application
programs and physical data files.
• Relieves the programmer or end user from the
task of understanding where and how the data
are actually stored.
16
Logical & physical view
Data
Data
Manipulation
Dictionary
Language
19
Entity–relationship model
Conceptual data model
Entities-real world as a set of basic objects
Attributes-their characteristic
Relationship-association among these
objects
23
Database Models
Databases
ROOT Employee
FIRST Job
Compensation Benefits
CHILD Assignments
Eg: HR Database
Network-
Data depicted as many-to-many relationships
MIS
MIS Advertising
Advertising MFS
MFS
26
Relational- Data represented as 2-dimensional tables
Eg: DB2, Oracle, MS Access, MS SQL Server
Course_ID
Course ID Course Desc
Course_Desc Course_Fee Roll_No
Roll No COURSE
32 A Kollam
12 B Cochin
60 C Alleppey
46 D Trivandrum
27
Relational
Information in more than one file can be easily extracted and combined
• Requirement
Display only the following fields…Course ID, Roll No, Name and Address of
students who have chosen MIS or HR
• Solution
SQL statement for producing the new resultant table is as follows:
SELECT COURSE.Course_ID, STUDENT.Roll_No, STUDENT.Name,
STUDENT.Address
FROM COURSE, STUDENT
WHERE COURSE.Roll_No= STUDENT.Roll_No
AND Course_Desc=MIS OR Course_Desc=HR
28
Heirarchical, Network Vs Relational
Hierarchical & Network Relational
29
Object-Oriented databases (OODBMS)
30
Database Trends
Multidimensional Data Analysis /
OLAP(Online Analytical Processing)
(creates multidimensional views of data)
Data Warehouse
(Database that stores current and historical data of
potential interest to managers throughout the company)
Data Mining
(Finding hidden patterns and relationships in large pools
of data and inferring rules from them to predict future
behavior and guide decision making)
31
Oracle DBMS
SQL Database Access Language that is
standard language for relational database
management systems
• CHAR(size)
• VARCHAR2(size)
• NUMBER(p,s)
• LONG
Basic SQL Command
• ROLLBACK, SAVEPOINT