Академический Документы
Профессиональный Документы
Культура Документы
Management Systems
Application A
Application A DBMS
O/S
Application A
Data Types
Text/Character
Number
Date/Time
Currency
Auto Number
Verchar
Data
Abstraction( mvimsc )
Conceptual level
(Definitions)
Physical level
(How data are stored in the storage)
Data Models
A Data model is a collection of conceptual tools
for describing data, data relationships, data
semantics and data constraints.
There are three types of data models
* Object-Based Logical Models
* Record-Based Logical Models
* Physical data models
Object-Based Logical Models are used in
describing data at the conceptual and the view
levels
There are four types of OBLM
# The entity-relationship model
# The binary model
# The semantic data model
# The infological model
Record-Based Logical Models are used in
describing data at the conceptual and the view
levels. These models are used to specify both the
overall logical structure of the database and a
higher-level description of the implementation.
Three most widely accepted data models are:
- Relational Model
- Network Model
- Hierarchical Model
Physical data models are used to describe data at
the lowest level
Widely used are
- Unifying model
- Frame memory
Database Language
Cross Join
This type of join is rarely used as it does not have a join
condition, so every row of R1 is joined to every row of
R2. For example, if both tables contain 100 rows the
result will be 10,000 rows. This is sometimes known as
a cartesian product and can be specified in either one
of the following ways:
SELECT * FROM R1 CROSS JOIN R2 SELECT * FROM R1,
R2
Network Model
The network model is a database model conceived
as a flexible way of representing objects and their
relationships. Its distinguishing feature is that the
schema, viewed as a graph in which object types
are nodes and relationship types are arcs, is not
restricted to being a hierarchy or lattice.
Where the hierarchical model structures data as a
tree of records, with each record having one
parent record and many children, the network
model allows each record to have multiple parent
and child records, forming a generalized graph
structure.
In 1969, the Conference on Data Systems Languages
(CODASYL) established the first specification of the
network database model. This was followed by a second
publication in 1971, which became the basis for most
implementations. Subsequent work continued into the
early 1980s, culminating in an ISO specification, but this
had little influence on products.
Data Structure Diagram
A data structure diagram is a scheme representing
the diagram of a network database. Such a
diagram consists of two basic components;
Boxes
Lines
- The boxes correspond to record types and the
lines correspond to links. A data structure
diagram serves the name purpose as an entity
relationship diagram. It specifies the overall
logical structure of the database.
Consider a database representing a customer-account
relationship in a banking system. There are two record
types, customer and account, customer has fields name,
street and city and account has two fields; number and
balance. The relationship between customer and account
is many to many relationship.
select *
from personal
where district=dhaka
Example
Table: Personal
Id Name Dob P_address District
101 bari 10-1-98 Tejgaon Dhaka
102 alam 12-5-76 Mirpur Khulna
Delete personal
where Id=102
Insert personal
Valus(103, kalam 10-6-90 Gazipur Rajshahi
BANGLADESH
B=Blood (i)
A=Achieve (AwRZ)
N=Noteworthy (wPi^ibxq)
G=Golden (mvbvjx)
L=Land (`k)
A=Admirable (cmswkZ)
D=Democratic (MYZvwK)
E=Evergreen (wPimeyR)
S=Sanctify (cwe)
H=Habitation (evmfwg)
259your age 39=?
Traditional file system of DBMS
File A PROG A
File B PROG B
O/S
File C PROG C
Library System
or
Library Management System
Preliminary list of transactions
1. Store details of new borrower
2. Store details of new Acquisition
3. Make loan
4. Record return of loan
5. Delete borrower
6. Delete Acquisition
7. Reserve book
8. Delete Reservation
9. Update current price
10.Send overdue loan reminder
Software details of library info
Thank You
MIS (Management Information System)
Middle
Short term planning Management &
Professional Staff
Supervisory Staff
Clerical and
Service Staff
Teach Mind
Touch Heart
Transform Life