Arid Agriculture University, Rawalpindi: Q.No. Marks Obtained
Arid Agriculture University, Rawalpindi: Q.No. Marks Obtained
To be filled by Student
Note: Copy paste will carry 0 marks, do not share your assignment with any one, only
upload on university LMS after completing your assignment.
Q.No.1. Consider the following scenarios and answer the given questions? (Marks 03)
Case 1:
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.p
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.
Case 2:
BigStore is a very large online mart dealing with multiple products online. This store has a
large chain of branches across the country.
Currently, BigStore operates with a centralized database system. This database is placed at
the server resides at the head office. All the branches are connected with the main head
office. All major operations (inventory management) takes place at a central site.
During the COVID-19 pandemic, the online users are increasing rapidly and the number of
requests is very large. Due to this situation, there is a reliability and performance issue with
the BigStore database systems.
Now the management has decided to convert the centralized database into a distributed
database system to overcome the issues regarding reliability and performance.
Suppose you are the system analyst, keeping in mind the system Please answer the following
questions. Please justify your answer with proper logical reasoning.
Q.No.2. Consider the STUDENT table with sample data: (Marks 05)
STUDENT
vi. Display records of students whose name start with “Muhammad” or “Mohammad”
SELECT * FROM STUDENT WHERE StName LIKE ’Muhammad%’ OR StName
LIKE’Mohammad%’;
vii. Delete records of students whose name contain “Ahmad” or “Ahmed
DELETE * FROM STUDENT WHERE StName LIKE ‘%Ahmad%’ OR StName LIKE ‘%Ahmed%’
viii. Display name of the Students represented by Roll# 101 and 102 and name of their CR
SELECT StName FROM STUDENT WHRERE StRoll=101 and StRoll=102
UNION
SELECT Stname FROM STUDENT WHERE StRoll=101 and StRoll=102 and CR IS NOT NULL;
OR
SELECT StName , cr.Stname FROM STUDENT
WHRERE StRoll=101 and StRoll=102
CR IN ( SELECT cr.Stname
FROM STUDENT cr
WHERE StRoll=101 and StRoll=102 and CR IS NOT NULL);
Answer:
Q.No.3.
EMPLOYEE
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.
3. Modify the predicates so that they partition EMP obeying the correctness rules of
fragmentation. To do this, modify the predicates (apply COM-MIN), compose all minterm
predicates and deduce the corresponding implications, and then perform a horizontal
fragmentation of EMP based on these minterm predicates. Finally, show that the result has
completeness, reconstruction and disjointness properties. (Marks 04)
Answer:
Explain why the resulting fragments of Employee does not fulfill the correctness rules of
fragmentation.
Modify the predicates so that they partition EMP obeying the correctness rules of
fragmentation. To do this, modify the predicates (apply COM-MIN), compose all minterm
predicates and deduce the corresponding implications, and then perform a horizontal
fragmentation of EMP based on these minterm predicates. Finally, show that the result has
completeness, reconstruction and disjointness properties.