DB Topic 2 - Databases & Database Management Systems
DB Topic 2 - Databases & Database Management Systems
Topic 2:
Databases and Database Management
Systems
Learning Outcomes
By the end of this topic, students will be able to:
• Describe the main features of a database system
• Understand the role of the database management
system
• Describe pre-database information systems
• Identify some of the commercial products available
• Understand the importance of the relational model
and identify some alternatives to it
Database definition
A shared collection of logically related
data, and a description of this
data, designed to meet the information
needs of an organization.
Data in MS Access
14 rows selected.
SQL>
Metadata - 1
Name Type Length Description
Student Name Character 50 Student’s
name
Student ID Number 8 Unique identification
number for a student
Date of Birth Date 8 Student’s date of birth
in the format
’01.01.80’
Metadata in MS Access
SQL>
Metadata - 2
• Metadata is data that is about data.
• It is the way in which the database keeps
information about its own structure.
• It is important in understanding how data can be
independent of applications in the database
approach.
• Metadata is stored in the data dictionary.
Activity
• Define metadata for data about the following:
- Students in a college database
- Books in a library system
- Holidays booked by a person at a workplace
Rental File
User Rental
Processing
Application
DBMS
User Other
Application
Data
Rental Application Requests METADATA
User Processing DATA
Application Data
Application Requests
DBMS
Other Database
User Application Data Management Database
System
Application programs might be written in a programming
Language, such as Visual Basic or C++, or it might
be created through a DBMS utility e.g. Access’s forms wizard.
Common Applications
• Forms I user interact with form to enter or view
data – save to database
• Reports – data is retrieved from DB in read only
mode, viewed, printed or attached
• Web-applications – Internet applications access
many servers that store data
• Batch processes – applications executed at once
and affect many records e.g. Payroll
DBMS – Architecture
• Kernel
• Toolkit
• Interface
Interface – interaction
DBMS Kernel- CRUD
Database
Commercial Implementations
• Oracle
• Microsoft SQL Server
• MySQL
Data Models
• Hierarchical –Inverted tree, parent child
relationship
• Network – no level many interactions
• Relational- table with columns and rows
• Object-oriented – Support OO programming
features
• Deductive
• Post-relational
References
• Benyon-Davies, P. (2003). Database Systems, 3rd
edition. Palgrave Macmillan. Chapters 5 and 6.
• Connolly, T. & Begg, C. (2004). Database Systems:
A Practical Approach to Design, Implementation
and Management, 4th edition. Addision Wesley.
Chapter 1.
• Creative Systems Design website:
http://online.creativesystemdesigns.com/projects/d
atabases.asp
(Retrieved 6/04/2011).
Any Questions?