oracle 3-s.doc

3
ORACLE ACADEMY VIRTUAL TRAINING HOMEWORK: WEEK 3 1. Rez olv aţi următoarele exerci ţii :  A. Utilizaţi i nformaţiile d in chitanţa de mai jos pentru a c rea un E RD cu en tităţi, atrib ute si relaţi i. 1 Copyright © 2005, Oracle. All ri ghts reserved

Upload: tresttiatresttia

Post on 14-Apr-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle 3-S.doc

7/27/2019 Oracle 3-S.doc

http://slidepdf.com/reader/full/oracle-3-sdoc 1/3

ORACLE ACADEMY VIRTUAL TRAINING

HOMEWORK: WEEK 3

1. Rezolvaţi următoarele exerciţii:

 A. Utilizaţi informaţiile din chitanţa de mai jos pentru a crea un ERD cu entităţi, atribute si relaţii.

1

Copyright © 2005, Oracle. All rights reserved

Page 2: Oracle 3-S.doc

7/27/2019 Oracle 3-S.doc

http://slidepdf.com/reader/full/oracle-3-sdoc 2/3

ORACLE ACADEMY VIRTUAL TRAINING

HOMEWORK: WEEK 3

B. Entitatea „ENROLLMENT” reprezintă entitatea de intersecţie ce rezolva relaţia M:M dintreSTUDENT si CLASS.  Acest ERD respecta forma a II-a normala? Daca nu atuncicorectaţi-o.

C. Citiţi textul de mai jos si desenaţi diagrama ERD in care se reprezentaţi relaţiile exclusive.

2

Copyright © 2005, Oracle. All rights reserved

Page 3: Oracle 3-S.doc

7/27/2019 Oracle 3-S.doc

http://slidepdf.com/reader/full/oracle-3-sdoc 3/3

ORACLE ACADEMY VIRTUAL TRAINING

HOMEWORK: WEEK 3

D. Modificaţi modelul Entitate – Relaţie (Video Store) pentru a acoperi următoarele cerinţesuplimentare.

2. Creaţi un model ierarhic si altul recursiv pentru următorul scenariu. Desenaţidiagrama ERD pentru fiecare model.

  Our company sells products throughout the World. So we’ve divided our companyinto four major sales regions: Region 1, Region 2, Region 3, and Region 4. Each salesregion has a unique region code. Each sales region is then divided into sales districts.For example, Region 1 is divided into the U.S, Canadian, and Southern districts. Eachdistrict has a unique district code. Each district is made up of sales territories. TheSouthern District is composed of three territories: Mexico, South America, and U.S.Territories. The U.S. District is made up of three territories: the West, Middle, and East.The Canadian District is composed of two territories: East and West. Each territory has aunique territory code.Each sales territory is then broken down into sales areas. For example, South America

is made up of two sales areas: Brazil, and the Coastal sales areas. Each sales area hasa unique sales area code. The Brazil area includes Uruguay, Paraguay, and Ecuador.

Each salesperson is responsible for one or more sales areas, and has a specific salesquota. We also have sales managers who are responsible for one or more sales districtsand sales directors who are responsible for one or more sales regions. Each salesmanger is responsible for the territories with his districts. We don’t overlap our employees’ responsibilities. Sales area is always the responsibility of a singlesalesperson, and our managers and director’s responsibilities don’t overlap. Sometimesour salespersons, manager, and directors will be on leave or special assignments andwill not have sales turf responsibilities. We identify all our sales personnel by their employee ids.

3

Copyright © 2005, Oracle. All rights reserved