















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
e commerce introduction, database
Typology: Lecture notes
1 / 23
This page cannot be seen from the preview
Don't miss anything!
Data?
Any information (most likely in electronic
form) worth preserving
E.g., names, addresses, grades, etc.
Database?
A collection of related data describing the
activities of one or more organizations
◦ Organized (or structured) for access and
modification
◦ Preserved over a long period
E.g. University Database
Query?
an operation that extracts specified data
from the database
E.g.
get the list of all courses and grades taken by “Smith”
Relation?
an organization of data into a two-
dimensional table,
rows (tuples) represent basic entities or facts of some sort
columns (attributes or fields) represent properties of those
entities.
Schema?
a description of the structure of the data in
a database
also known as metadata
◦
Manually
E.g., a library card catalog
◦
Computerized system
Specialized DB:
A Specific set of applications
General Purpose DB:
Database Mgt systems
Database management system (DBMS)?
◦ A collection of programs that enables
users
To define (specifying data type, etc.)
To construct (storing)
To manipulate (reading, writing)
To share (simultaneous access)
To protect (security & privacy protection)
To modify (changing requirements)
Example: University
Example: University
Database System
Database System
A typical university database
system maintaining information
regarding
◦
Students
◦ Courses
◦ Grade_Report
◦
Section
◦
Prerequisite
ACID
◦
people on the Scene
◦
people behind the Scene
File System vs. Database
File System vs. Database
Mgt Systems
Mgt Systems
Suppose an organization needs
to manage a large collection of
data, say, 500 GB (i.e., 500X
MB)
Data is supposed to be accessed
concurrently by employees
Changes made to the data must
be applied consistently
Access to the data must be
restricted
Primary Advantages of Using
Primary Advantages of Using
a DBMS: 1
a DBMS: 1
Controlling Redundancy
Duplicate space and efforts
inconsistency
Restricting Unauthorized Access
Security and authorization subsystem
Providing persistent storage for program
objects and data structure
Impedance mismatch problem
(incompatibility between PL and DBMS)
Deriving new information from existing ones
(view)
Primary Advantages of Using
Primary Advantages of Using
a DBMS: 2
a DBMS: 2
Providing Multiple User Interfaces
Representing Complex Relationships among
Data
Enforcing Integrity Constraints
Providing Backup and crash Recovery
Scheduling concurrent accesses to the data
Reducing application development time