Professional Documents
Culture Documents
1.1
to use.
Database Applications:
1.2
systems
program code
1.3
Security problems
Database systems offer solutions to all the above problems
1.4
Levels of Abstraction
A database system is a collection of interrelated files and a set of
Since
1.5
describes what data stored in database, and the relationships among the
data.
Database administrators, use the logical level of abstraction
who must decide what information to keep in the database
Programmers using a programming language, database administrators
work at this level
1.6
View of Data
View level
highest level of abstraction
Many users of the database system do not entire database
Simplify users interaction with the system.
The system may provide many views for the same database.
Prevent users from accessing certain parts of the database.
Example:
type customer = record
name : string;
street : string;
city : integer;
end;
1.7
the database
Schemas are changed infrequently, if at all
a database schema
Database System Concepts
1.8
Data Independence
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.
Physical Data Independence
The ability to change the physical schema without changing the logical schema
For example, a change to the internal schema, such as using different file organization
level
1.9
Data Models
A collection of tools for describing
data
data relationships
data semantics
data constraints
Entity-Relationship model
Relational model
Other models:
object-oriented model
Object-relational data models
Older models: network model and hierarchical model (Class
notes)
1.10
1.11
considered as entities.
Entities are described in a database by a set of attributes.
A relationship is an association among several entities.
For example, a depositor relationship associates a customer with
each account.
The set of all entities of the same type and the set of all
1.12
1.13
Entity-Relationship Model
Example of schema in the entity-relationship model
1.14
Object-Oriented Model
Like the E-R Model, this model also models a database as a Collection of Objects.
An Object Body encapsulates Data (Variables) as well as Methods (Functions) to
manipulate the Data (Variables).
The Objects that contain same Type of Data Variables and same Type of Functions are
grouped together as a Class.
Thus, a Class may be viewed as a Type Definition of the Objects.
The only way an Object A can access the Data Items of another Object B is by
invoking the Methods of B.
A can accomplish this by making calls to the methods of B, through Bs Interface.
The methods defined within an object are made visible to the external world, through
its Interface.
1.15
Relational Model
The relational model uses a collection of tables to represent both data
1.16
1.17
Problem to solve
The Course-Student-Teacher Database Schema in Relational Model will be represented
by six Tablesthree tables to represent entities i.e. STUDENT (giving details of all students), TEACHER
(giving details of all teachers), COURSE (giving details of all courses); and three tables to
represent relationships i.e. COURSE-TEACHER (indicating relationships OFFERED BY
and OFFERS), COURSE-STUDENT (indicating relationships ATTENDS and ATTENDED
BY) and TEACHER-STUDENT (indicating relationships TAUGHT BY and TEACHES).
1.18
1.19
Introduction
1. Database is collection of ____.
A None of these
B Programs
C Data
D Modules
1.20
1.21
Disadvantages of File
Question 1 Duplication of data at several places is called as
_______________.
A Data Redundancy
B Atomicity Problem
C Data Inconsistency
D Data Isolation
Question 2 Data Redundancy increases the cost of storing and
retrieving data.
A False
B True
1.22
1.23
Levels of Abstraction
1. A main purpose of DBMS is to provide ____________ view of data
to user.
A Partial
B Complete
C None of these
D Abstract
1.24
1.25
Data Model
Question 1: Data Model is collection of conceptual tools for
describing A Data
B All of these
C Consistency Constaints
D Data Schema
Question 2
Data Models in DBMS are classified into ______ categories.
A4
B3
C5
D2
1.26
model ?
A Relational Model
B Hierarchical Model
C Entity Relationship Model
D Network Model
Question 5
Entity Relationship model consists of collection of basic objects called
A entities
B models
C None of these
D functions
Database System Concepts
1.27
A Instance of Database
B Database Schema
C Objects in Database
D Data Structure
Question 2 Overall design of the database is called as _________.
A None of these
B Database Instance
C Database Abstraction
D Database Schema
1.28
1.29
Definition Language (DDL) is a standard for commands that define the different
structures in a database.
E.g.
DDL compiler generates a set of tables stored in a file called data dictionary or
data directory.
DDL statements create, modify, and remove database objects such as tables,
1.30
Procedural user specifies what data is required and how to get those data
Nonprocedural user specifies what data is required without specifying how
to get those data
SQL is the most widely used query language
1.31
SQL
SQL: widely used non-procedural language
E.g. find the name of the customer with customer-id 192-83-7465
select customer.customer-name
from customer
where customer.customer-id = 192-83-7465
E.g. find the balances of all accounts held by the customer with customer-id
192-83-7465
select account.balance
from depositor, account
where depositor.customer-id = 192-83-7465 and
depositor.account-number = account.account-number
Application programs generally access databases through one of
Language extensions to allow embedded SQL
1.32
These include:-
1.33
Database Users
Users are differentiated by the way they expect to interact with the system
Application programmers interact with system through DML calls
Sophisticated users form requests in a database query language
Specialized users write specialized database applications that do not fit
1.34
Database Administrator
Schema definition
Storage structure and access method definition
Schema and physical organization modification
Granting user authority to access the database
Specifying integrity constraints
Acting as liaison with users
Monitoring performance and responding to changes in
requirements
1.35
Transaction Management
A transaction is a collection of operations that performs a single
1.36
Storage Management
Storage manager is a program module that provides the
1.37
1.38
Application Architectures
1.39