Exersic

April 5, 2017 | Author: Intisar Alssull | Category: N/A
Share Embed Donate


Short Description

Download Exersic...

Description

c        c             !   "      # $ %&&'(% #) "$c c**" + #$",+- "..+ / 0 c*#.+c ".. c*# "$c "..+ / 0 c*#*1+ c ('23 "4/+-# "$c 0-"-"  "4/+-#+55/.c 6,7%8& "4#7/)/ 0# 1+9"-6"))c 7c-0c-7/)/ 0 "4#*1+ c %&&2 #0*" %!3: #1+- ;3 #.)"      !    

      

8. To keep track of office furniture, computers, printers, and so on, the FOUNDIT company uses the following table structure:  Attribute name

Sample value

 ITEM_ID

2311345-678

ITEM_DESCRIPTION

HP DeskJet 660C printer

BLDG_ROOM

325

BLDG_CODE

DEL

BLDG_NAME

Dawn's Early Light

BLDG_MANAGER

E. R. Rightonit

 Given this information, draw the dependency diagram. Make sure you label the transitive and/or partial dependencies.       *  ;E  !  9. Starting with the dependency diagram drawn for problem 10, create a set of dependency diagrams that meet 3NF requirements. Rename attributes to meet the naming conventions and create new entities and attributes as necessary. 

    5*(!?G;        ! 



Figure P4.8&9 The Dependency Diagrams for Problems 8 and 9   10. Using the results of problem 9, draw the E-R diagram.   5 *(!&8          c=-                               ! 7        Ê Ê    7/)/ 0 c$*)+Acc  ! +         !

 

m                                                        

            

      !                       

                 "             #$   % &&         #                                              

      

Figure P4.10 The ERD and the Relational Schema for problem 10 





&&!           !5                   !   Attribute name

Sample value

EMP_CODE

1003

LAST_NAME

Willaker

EDUCATION

HS, BBA, MBA



DEPT_CODE

MKTG

DEPARTMENT

Marketing

DEPT_MANAGER

Jill H. Martin

JOB_CLASS

23

TITLE

Sales agent

DEPENDENTS

Gerald (spouse), Mary (daughter), John (son)

BIRTH_DATE

12/23/65

HIRE_DATE

10/14/94

TRAINING

Level 1, level 2

BASE_SALARY

$32,255

 Given this structure, draw its dependency diagram. Label all transitive and/or partial dependencies. 

Figure P4.11 The Dependency Diagram for Problem 11  

 12. Break up the dependency diagram you drew in problem 11 to produce dependency diagrams that are in 3NF. (ã : You may have to create a few new attributes. Also, make sure that the new dependency diagrams contain attributes that meet proper design criteria; that is, make sure that there are no multi-valued attributes, that the naming conventions are met, and so on.                =       

     !   C    >                         ! 0          *   && c."/+  c*c c  -"/ / 0   =     !9        =  !5*(!&%!  

Figure P4.12 The Dependency Diagrams for Problem 12 

13. Using the results of Problem 12, draw the E-R diagram.  9   *  &' &(5*(!&'G&(  14. Using the results of Problem 13, draw the relational schema. 

Figure P4.13&14 The Dependency Diagram for Problem 14   

15. Suppose you are given the following business rules that will form the basis for a database design. The database must enable the manager of a company dinner club to mail invitations to the club's members, to plan the meals, to keep track of who attends the dinners, and so on.   jEach dinner serves many members, and each member may attend many dinners.  jA member receives many invitations, and each invitation is mailed to many members.  j A dinner is based on a single entree, but an entree may be used as the basis for many dinners. For example, a dinner may be composed of a fish entree, rice, and corn. Or the dinner may be composed of a fish entree, baked potato, and string beans.  jA member may attend many dinners, and each dinner may be attended by many members.  Because the manager is not a database expert, the first attempt at the "database" uses the following structure:  Attribute name

Sample value

 MEMBER_NUM

214

MEMBER_NAME

Alice B. VanderVoort

MEMBER_ADDRESS

325 Meadow Park

MEMBER_CITY

Murkywater

MEMBER_ZIPCODE

12345

INVITE_NUM

8

INVITE_DATE

2/23/02

ACCEPT_DATE

2/27/02

DINNER_DATE

3/2/02

DINNER_ATTEND

Y

DINNER_CODE

5

DINNER_DESCRIPTION

Sea Delight

ENTREE_CODE

3

ENTREE_DESCRIPTION

Stuffed crab

DESSERT_CODE

8



DESSERT_DESCRIPTION Chocolate mousse with raspberry sauce 

Given this structure, draw its dependency diagram. Label all transitive and/or partial dependencies. (ã  This structure uses a composite primary key.) 

         

>    !  / #.+c5*(!&?  / #"c D                  >       > !     j       ! j   ! j -       E        C ! j                                       !                5 *(!&;! /              % 5 $c$7c-!"      !9   $c$7c-E% 5  C  H/*.+c  H/*#.+c >$c$7c-  !            ! 

Figure P4.16 The Dependency Diagram for Problem 16  /              5 *(!&;! 5        / 4/"/+   / c-  >      >         / 4/c#"c      / #"c   / #.+c    $c$# $    / 4/c#"..c*       / 4/c#"c !  / 4/c#"..c*         AB       / 4/c#"c !            / 4/c#"..c*  / 4/c#"c       ! 0    

            ! 

17. Using the results of problem 16, draw the E-R diagram.  



View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF