Académique Documents
Professionnel Documents
Culture Documents
n Database Languages
n Relational Databases
n Database Design
n Data Models
n Database Internals
n Overall Structure
n Database Applications:
1
n Databases touch all aspects of our lives
n In the early days, database applications were built directly on top of file systems
l Integrity problems
l Atomicity of updates
Failures may leave database in an inconsistent state with partial updates carried
out
Example: Transfer of funds from one account to another should either complete
or not happen at all
l Security problems
2
Levels of Abstraction
n Logical level: describes data stored in database, and the relationships among the data.
customer_id : string;
customer_name : string;
customer_street : string;
customer_city : string;
end;
n View level: application programs hide details of data types. Views can also hide information
(such as an employee’s salary) for security purposes.
View of Data\\\
l Example: The database consists of information about a set of customers and accounts
and the relationship between them)
3
l Physical schema: database design at the physical level
n Physical Data Independence – the ability to modify the physical schema without changing the
logical schema
In general, the interfaces between the various levels and components should be well defined so that
changes in some parts do not seriously influence others
Data Models
l Data
l Data relationships
l Data semantics
l Data constraints
n Relational model
l Network model
l Hierarchical model
n Language for accessing and manipulating the data organized by the appropriate data model
4
l DML also known as query language
l Procedural – user specifies what data is required and how to get those data
branch_name char(10),
balance integer)
l Database schema
l Integrity constraints
Domain constraints
l Authorization
Relational Model
5
6