Presentation is loading. Please wait.

Presentation is loading. Please wait.

PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.

Similar presentations


Presentation on theme: "PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University."— Presentation transcript:

1 PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University

2 Class Test -01 Solution It is not guaranteed that all the solutions are correct.

3 Tutorial Q 1. Find the employee numbers of those employees who are assigned to all the projects that have a budget greater than $200,000 Slide 3

4 Slide 4 Solution  ENO, PNO,PNAME,BUDGET (ASGP ROJ)  (  BUDGET>2,00000 (PROJ))

5 Slide 5 Tutorial Q 2. Find the names of all customers who have a loan at the Perryridge branch but do not have an account at any branch of the bank. The Banking Examples are given bellow: branch (branch-name, branch-city, assets) customer (customer-name, customer-street, customer-city) account (account-number, branch-name, balance) loan (loan-number, branch-name, amount) depositor (customer-name, account-number) borrower (customer-name, loan-number)

6 Solution Slide 6  customer-name (  branch-name = “Perryridge” (  borrower.loan-number = loan.loan-number ( borrower x loan ))) –  customer-name ( depositor )

7 Slide 7 Tutorial Q 3. Normalize the following relation EMP_DEPT_PROJ

8 Solution Step 1: Since ENO and PNO composite key attributes determine the all non key attributes  So the given relation is in 1 NF. Slide 8

9 D 2NF: Slide 9 Solution Step 2:

10 Step 3:  Let us now identify the transitive dependency and remove it. Slide 10 Solution 3 NF:

11 Step 4:  Let us now identify the non key determinants and remove them. Slide 11 Solution Boyce-Codd normal form (BCNF):

12 Slide 12 Tutorial Q 4. Normalize the following relation PART Part_IDDescrPriceComp_IDNo

13 Solution Part_ID  Description Part_ID  Price Part_ID, Comp_ID  No Since Part_ID does not determine all the non key attributes. So relation is not in 1 NF. 1 NF: Part_IDDESCRPrice Part_ID Comp_IDNo Slide 13

14 Solution 2 NF: No partial dependency 3 NF: No transitive dependency Slide 14 Part_IDDESCRPrice Part_ID Comp_IDNo Part_IDDESCRPrice Part_ID Comp_IDNo

15 5. Define Distributed Computing Systems. What is being Distributed? Slide 15 Tutorial Q

16 Solution Distributed Computing systems: A number of autonomous processing elements  that are interconnected by a computer network and  that cooperate in performing their assigned tasks. The “processing element” referred to a computing device that can execute a program on its own. Slide 16

17 What is being distributed?  Processing logic: processing logic or processing elements are distributed  Functions: Various functions of a computer system could be delegated to various pieces of hardware or software  Data: Data used by a number of applications may be distributed to a number of processing sites  Control: The control of the execution of various tasks might be distributed instead of being performed by one computer system. Solution Slide 17

18 6. What do you mean by Fully transparent access ? Describe Replication Transparency Slide 18 Tutorial Q

19 Solution SELECTENAME,AMT FROMEMP,ASG,SAL WHEREDUR > 12 ANDEMP.ENO = ASG.ENO ANDSAL.TITLE = EMP.TITLE Paris projects Paris employees Paris assignments Boston employees Montreal projects Paris projects New York projects with budget > 200000 Montreal employees Montreal assignments Boston Communication Network Montreal Paris New York Boston projects Boston employees Boston assignments Boston projects New York employees New York projects New York assignments Tokyo  Fully Transparent Access: Example:  The users can still create the above query as usual manner. A transparent system “hides” the implementation details from users. Fully transparent access means that the users can still create the query without paying any attention to the fragmentation, location, or replication of data, let the system worry about resolving these issues. Slide 19

20 Replication Transparency Data are replicated, the transparency issue is:  The users should not be aware of the existence of copies and the system should handle the management of copies.  The users not to be involved with handling copies and having to specify the fact that a certain action can and/or should be taken on multiple copies. Solution Slide 20

21 Thank You Slide 21


Download ppt "PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University."

Similar presentations


Ads by Google