1 IntroDB
1 IntroDB
COMP 353/453
Database Programming
Prof. Silva
These slides were prepared by Prof. Silva adapting the slides from Fundamentals of Database Systems (Elmasri and Navathe) and Understanding
Relational Database Query Languages (Dietrich)
File Processing Systems
2
Database Management Systems: efficient, shared
access to persistent data
DATA ABSTRACTION
conceptual level
physical level
3
Data Independence
physical:
the ability to modify the physical scheme without causing the
application program to be rewritten
e.g. reorganize data structures to improve performance
logical:
the ability to modify conceptual scheme without causing the
application program to be rewritten,
e.g. add new fields
4
Databases versus File Systems
• self-contained nature
Stores data along with a complete description of data and its interpretation (meta-
data stored in a catalog)
• insulation between program and data
The catalog can be modified without necessarily requiring a change in a program.
A change in a file system requires a change in the program.
• data abstraction
A data model logically describes relationships between objects, constraints on
data, etc., without concern for physical details.
• support of multiple views
A DBMS has many different users who need to view data in different ways. A
view is a subset of the database, which is virtual (the subset is not explicitly
stored but derived from the stored database).
5
Data Models
Database Scheme:
• Overall design of the DB
• Intension
• Intensional Database
Database Instance:
• Collection of information stored in the DB at a particular
instant in time
• Extension
• Extensional Database
7
Database Terminology: Languages
8
Database Terminology: Users
Database Users:
• application programmers - DML
• knowledgeable users - query language
• naive/parametric end users - menu-driven queries