Professional Documents
Culture Documents
DDBS Lecture3
DDBS Lecture3
• SQL Interface
• Programmatic interface
• Other application
support environments
Objectives
User Input
Conceptual View Integration View Design
Design
Access
GCS Information ES’s
Distribution
Design User Input
LCS’s
Physical
Design
LIS’s
April 5, 2024 Distributed Databases - CSC451 7
Dimensions of the Design Problems
Access pattern behavior
dynamic
static
partial
information
data
Level of knowledge
data + complete
program information
Level of sharing
PROJ1 PROJ2
PNO PNAME BUDGET LOC PNO PNAME BUDGET LOC
P1 Instrumentation 150,000 Nairobi P3 KSM/BSA 250,000 Kisumu
Database P4 Maintenance 310,000 Kakamega
P2 development 135,000 Kisumu P5 KSM/BSA 500,000 Eldoret
PROJ1 PROJ2
PNO BUDGET PNO PNAME LOC
P1 150,000 P1 Instrumentation Nairobi
P2 135,000 P2 Database development Kisumu
P3 250,000 P3 KSM/BSA Kisumu
P4 310,000 P4 Maintenance Kakamega
P5 500,000 P5 KSM/BSA Eldoret
PROJ TITLE
PNO PNAME BUDGET LOC TITLE SAL
P1 Maintenance 150,000 Nairobi Electrical Eng. 40000
P2 Database development 85,000 Kisumu Syst. Analyst 34000
P3 Advisory 135,000 Kisumu Programmer 24000
P4 Assurance 97,000 Nairobi Mech. Eng. 27,000
EMP PROJ
ENO, ENAME, TITLE PNO, PNAME, BUDGET, LOC
ASG
ENO, PNO, RESP, DUR
Preliminaries:
Pr should be complete
Pr should be minimal
Example:
Assume PROJ[PNO, PNAME, BUDGET, LOC] has two applications
defined on it.
Find the budgets of projects at each location (1)
Find projects with budgets less than KES 100,000 (2)
Modify
Pr={LOC="Kisumu", LOC="Nairobi",
Budget <= 100,000, Budget > 100,000}
which is complete
PAY1 PAY2
TITLE SAL TITLE SAL
Programmer 24000 Electrical Eng. 40000
Mech. Eng. 27,000 Syst. Analyst 34000
m1: (LOC="Kisumu")^(BUDGET<=100,000)
m2: (LOC="Kisumu")^(BUDGET>100,000)
m3: (LOC="Nairobi")^(BUDGET<=100,000)
m4: (LOC="Nairobi")^(BUDGET>100,000)
PROJ3 PROJ4
PNO PNAME BUDGET LOC PNO PNAME BUDGET LOC
P4 Assurance 97,000 Nairobi P1 Maintenance 150,000 Nairobi