Data Management and Information Processing
Data Management and Information Processing
Information Processing
What Is a Database System?
• Database:
a very large, integrated collection of
data.
• Models a real-world enterprise
– Entities (e.g., teams, games, patients, clinics,
hospitals)
– Relationships
(e.g., The Forty-Niners are playing in The
Superbowl)
– (Juan de la Cruz is confined in MMMH&MC)
– More recently, also includes active components ,
often called “business logic”.
DBMS
• Thought Experiment 1:
– You and your project partner are editing the same file.
– You both save it at the same time.
– Whose changes survive?
Physical Schema
• Physical schema describes
the files and indexes used.
DB
• (sometimes called the
ANSI/SPARC model)
Example: University Database
View 1 View 2 View 3
• Conceptual schema:
– Students(sid: string, name: string,
Conceptual Schema
login: string, age: integer, gpa:real)
– Courses(cid: string, cname:string, Physical Schema
credits:integer)
– Enrolled(sid:string, cid:string,
grade:string) DB
• External Schema (View):
– Course_info(cid:string,enrollment:integer)
• Physical schema:
– Relations stored as unordered files.
– Index on first column of Students.