Professional Documents
Culture Documents
Mr.V.Yuvaraj
Assistant Professor – Department of Computer Applications
Dr. N.G.P. ARTS AND SCIENCE COLLEGE
Dr. N.G.P.-KALAPATTI ROAD
COIMBATORE-641 048
Tamil Nadu, India
Mobile: +917502919891,
E-mail: yuvaraj.v@drngpasc.ac.in
Dr. NGPASC
COIMBATORE | INDIA
What Is a Database?
Dr. NGPASC
COIMBATORE | INDIA
2
What Is a Database?
Dr. NGPASC
COIMBATORE | INDIA
What Is a Database?
– Primary Key
• Field that uniquely identifies the records in a table
• Field in a table that is used to relate that table to other tables
Dr. NGPASC
COIMBATORE | INDIA
5
The Evolution of Databases
Dr. NGPASC
COIMBATORE | INDIA
6
What Is a Database?
Advantages and Disadvantages of the DBMS Approach
– Advantages
– Low level of redundancy
– Faster response time
– Lower storage requirements
– Easier to secure
– Increased data accuracy
– Disadvantages
Increased vulnerability (backup is essential)
Dr. NGPASC
COIMBATORE | INDIA
7
Data Concepts and Characteristics
Data Hierarchy
– Fields/columns
• Hold single pieces of data
– Records/rows
• Groups of related fields
– Tables
• Collection of related records
– Database
• Contains a group of related tables
Dr. NGPASC
COIMBATORE | INDIA
Data Concepts and Characteristics
Dr. NGPASC
COIMBATORE | INDIA
Many to Many Relationship
opening date
opening date
Illegal legal
opening date
opening date
Dr. NGPASC
COIMBATORE | INDIA
One to One Relationship
customer custacct account
opening date
Illegal
Customer Account Start Date
• 1 customer can have 1 John 1001 Jan 20th 1999
account. Megan 1001 March 16th 1999
conceptual schema
logical design
application design
logical schema
high level specs (in DBMS model)
physical design
transaction implementation
Dr. NGPASC
Functional Design Database Design
COIMBATORE | INDIA
Database Design Tools
• Help partially automate the design cycle.
• Graphical interface to specify conceptual schemas.
• Partially automated techniques to map to logical (DBMS
dependent) model.
• Features of a good design tool:
– Iterative: errors /shortcomings of original design found later can be corrected
without full restart.
– Interactive: any design choices made by system during design should be
based on interaction with designer.
– Feedback: a designer’s change made at logical and/or physical levels should
be automatically translated to changes at higher levels.
Dr. NGPASC
COIMBATORE | INDIA
Database System Development Lifecycle
• Application design
• Prototyping (optional)
• Implementation
• Data conversion and loading
• Testing
• Operational maintenance
Dr. NGPASC
COIMBATORE | INDIA Pearson Education © 2009 19
Stages of the Database System
Development Lifecycle
Dr. NGPASC
COIMBATORE | INDIA Pearson Education © 2009 20
Confident. / Integrity / Availability
Courtesy of: Prof. Barbara Endicott-Popovsky
Dr. NGPASC
COIMBATORE | INDIA
Security
• Security requirements for databases and DBMSs:
a. Physical database integrity requirements
DB immune to physical problems (e.g., power failure, flood)
b. Logical database integrity requirements
DB structure preserved (e.g., update of a field doen’t affect another)
c. Element integrity requirements
Accuracy of values of elements
d. Auditability requirements
Able to track who accessed (read, wrote) what
e. Access control requirements
Restricts DB access (read, write) to legitinmate users
f. User authentication requirements
Only authorized users can access DB
g. Availability requirements
DB info available to all authorized users 24/7
Dr. NGPASC
COIMBATORE | INDIA
Dr. NGPASC
COIMBATORE | INDIA 23