0% found this document useful (0 votes)
56 views2 pages

Barani Institute of Management Sciences

The document is a midterm exam for a distributed database systems course. It contains 3 questions. Question 1 asks students to horizontally fragment a relation based on given predicates and explain why the resulting fragments do not satisfy correctness rules. Question 2 asks students to perform CRUD operations on an Employee table and write queries. Question 3 asks students to recommend a distributed database architecture and design for a certificate attestation system between education boards during COVID-19, considering reliability and performance.

Uploaded by

Laraib Liaquat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views2 pages

Barani Institute of Management Sciences

The document is a midterm exam for a distributed database systems course. It contains 3 questions. Question 1 asks students to horizontally fragment a relation based on given predicates and explain why the resulting fragments do not satisfy correctness rules. Question 2 asks students to perform CRUD operations on an Employee table and write queries. Question 3 asks students to recommend a distributed database architecture and design for a certificate attestation system between education boards during COVID-19, considering reliability and performance.

Uploaded by

Laraib Liaquat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BARANI INSTITUTE OF MANAGEMENT SCIENCES

Mid-Term Exam Spring Semester 2021

Course Title: Distributed Database System Course Code: CS-784/CS-600


Discipline /Program: MCS (4th) Total Marks: 12
Time allowed: 12 hrs Instructor’s Name: Saba Un Nisa

Question1: (Marks 6)
Emp-Id Emp-Name Job-Title Hire-Date Salary Commission
1001 M. Junaid PRESIDENT 1991-11-18 6000.00 USD
1002 M. Usman MANAGER 1991-05-01 2750.00 USD
1003 M. Awais MANAGER 1991-06-09 2550.00 USD
1004 M. Jawad MANAGER 1991-04-02 2957.00 USD
1005 M. Ali ANALYST 1997-04-19 3100.00 USD
1006 M. Azhar ANALYST 1991-12-03 3100.00 USD
1007 M. Adeel CLERK 1990-12-18 900.00 USD
1008 M. Imran SALESMAN 1991-02-20 1700.00 USD 400.00 USD
1009 M. Nazer SALESMAN 1991-02-22 1350.00 USD 600.00 USD
1010 M. Asad SALESMAN 1991-09-28 1350.00 USD 1500.00USD
1011 M. Sadiq SALESMAN 1991-09-08 1600.00 USD 0.00 USD
1012 M. Kamarn CLERK 1997-05-23 1200.00 USD
1013 M. Khuram CLERK 1991-12-03 1050.00 USD
1014 M. Usama CLERK 1992-01-23 1400.00 USD
Consider relation EMPLOYEE. Suppose there are two applications that access EMPLOYEE. The
first is issued at four sites and attempts to find the Salary of employee by given their numbers.
Assume that we have set the simple predicates for application 1 are P1: Job-Title=
PRESIDENT,P2: Job-Title= MANAGER, P3: Job-Title= ANALYST The second application is
issued at two sites where the employee with a salary less than 15,00 USD are managed at one site,
whereas those with salary grater then 15, 00 USD are managed at a second site. Suppose we set
the simple predicates for site 2 are P4: Salary<15,00 USD, P5: Salary>=15,00 USD and P6:
Commission= 400.00 USD.
1. Perform a horizontal fragmentation of relation EMP with respect to the predicates above.
2. Explain why the resulting fragments of Employee does not fulfill the correctness rules of
fragmentation.

Question 2: (Marks 3)
Employee ( Eid, Ename,EAge, ECity, E_Street, E_House#, E_Basic_Salary, E_Bonus,E_Rank,
E_Department) Eid is Primary key, E_Rank can be “Manager, Developer, Admin” ,
E_Department can be “HR, CS, IT, Labour” , Employee Age between 18 and 60. , Default value
for department is “CS”.
Perform the following queries
1. Create Employee table
2. Display whole address of employee along with name, columns names must be “Emp
Name” and “Address”.
3. Display name of employee and total salary of employee. (total salary is sum of basic
salary and bonus)
4. Change basic salary of all employees, add increment of 5% to all.
5. Display those employees whose age is more than 18 and less than 33. (Do not use
relational operators “> or <”.
6. Display total number of employees.

Question 3: (Marks 3)
The Inter Board Committee of Chairmen (IBCC) was established in 1972 under a resolution of the
Ministry of Education to exchange information among member education and textbook Boards,
coordination activities of the Boards, achieve fair of uniformity of academics, evaluation and
curricula standards and to promote curricula and co-curricular activities on the inter-board basis.
IBCC also grant equivalence to foreign qualification with corresponding Pakistani certificates at
Secondary School Certificate (SSC) and Higher Secondary School Certificate (HSSC). IBCC also
attests certificates and diplomas, issued by Boards of Intermediate and Secondary Education and
Boards of Technical Education in Pakistan.
Specific to the certificates and diplomas attestation the IBBC work as per the following manner.
The certificates and diplomas are sent to the relevant board there are different certificate awarding
and awarding boards in Pakistan. All boards have their databases. The certificates and diplomas
are checks by the relevant board official with the help of their Owen databases, then the attested
certificates and diplomas are sent back to the IBBC.
During the current COVID-19 pandemic this process has many hurdles.to ease the certificates and
diplomas attestation process during this COVID-19 pandemic the management has decided to
distribute the systems so that all the board is connected with each other through the distributed
database system.
i. Which architecture you prefer for this scenario.
ii. Which design approach you prefer for this scenario (draw diagram of your design
approach for this system)
iii. Which distribution you may prefer for this scenario (Please consider the reliability and
performance factor in your mind).

You might also like