Distributed Database Management Systems: Lecture 8. The main topics covered in this chapter include: derived relational algebra ops; relational calculus; semi join; first-order predicate logic; atomic formula;...
Trang 1Distributed Database Management Systems
Lecture # 8
Trang 2In the previous lecture
• Integrity Rules
• Data Manipulation Languages
Trang 3In this Lecture
• Derived Relational Algebra
Ops…
• Relational Calculus
Trang 4Semi join
• Subset of tuples of R that
participate in join of R with S
R F S = A(RA S)
B
Trang 5• The division of R with degree r
with S with degree s is the set of (r-s)-tuples t such that
for all s-tuples u in , the tuple tu is
in R.
R S = A(R)- A( A(R)
xS)-R)
Trang 6eNo pNo pName budget
Bridge Bridge Tower Mosque
11.5m 11.5m 10.2m 9.1m
P1
P3
Bridge Tower
11.5m 10.2m
R
S
Trang 7Relational Calculus
Trang 8• Rather than how to obtain
results, we say what the result
Trang 9Find the set of all tuples t such that F(t) is true, where F
implies the predicate condition
Trang 10Atomic Formula
• Tuple-variable membership
expression: specified as R(t) or R.t
• Conditions
–s[A] Θ t[B]
–S[A] Θ c
Trang 11• Language based on
Tuple-oriented Calculs……?
Trang 12• Select EMP.eName,
DEP.dName from EMP, DEP where EMP.dNo = DEP.dNo
Trang 13Domain Relational Calculus
• Domain variable ranges over
values in a domain and specifies
Trang 14Interface with Programming Languages
Trang 15• Tightly Coupled
–Programming Language and
database languages are
merged
• Loosely Coupled
–PL is extended with special
concepts
Trang 17Computer Networks
Trang 18A computer network is a
system for communication between two or more
computers
Trang 20• Computers are called Nodes,
sites, hosts
• Other equipment at nodes
• Equipment connected via links
and channels
Trang 21Data Communication
Trang 22• Communication links carry
data in form of Digital or
Trang 23Factors that Matter
• Bandwidth
• Mode of Operation
• Software employed
Trang 24Header Block Error
Check Text
Trang 25Types of Networks
Trang 26Classification Criteria
• Interconnection Structure
• Transmission Mode
• Geo Distribution
Trang 27Central Control Node
Trang 28Ring Network
Unidirectional
Ring
Ring Interface
Trang 29Bus Network
BUS
Trang 30Meshed Network
Trang 31Transmission
Mode
Trang 32• Point to Point (uni cast)
• Broadcast (multi-point
networks)
Trang 33Point to Point
• One or more links between
sender and receiver
• Link may be direct or through
switching
Trang 35• Multicasting
• Generally Radio or Satellite
based
• Or Microwave
Trang 36Thanks