DOC PREVIEW
UT Dallas CS 6385 - hw3-answer

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

3.3. Define the following terms: entity, attribute, attribute value, relationship instance, composite attribute, multivalued attribute, derived attribute, complex attribute, key attribute, and value set (domain).entity:The basic object that the ER model represents is an entity, which is a thing in the real world with an independent existence. An entity may be an object with a physical or conceptual existence. attribute: The particular properties that describes the entity. attribute value: The attribute value describe each entity become a major part of the data stored in the database. relationship instance: Each relationship instance ri in R composite attribute:Composite attributes can be divided into smaller subparts, which represent more basic attributes with independent meanings. multivalued attribute: It means that an entity may have different numbers of values for particular attribute. derived attribute: One attribute can be derived from another attribute. For example, a particular person entity, the value of Age can be determined from the current(today’s) date and the value of the that person’s Brith_date. complex attribute: It means that a complex ( composite ) attribute is composed of more than one simple ( atomic ) attribute. key attribute: An entity type usually has an attribute whose values are distinct for each individual entity in the entity set. Such an attribute is called a key attribute, and its values can identify each entity uniquely. value set (domain):Each simple attribute of an entity type is associated with a value set (or domain of values ), which specifies the set of values that may be assigned to that attribute for each individual entity. 3.7. What is a participation role? When is it necessary to use role names in the description of relationship types?Each entity type that participates in a relationship type plays a particular role in the relationship. It necessary to use role names in the description of relationship types, in some cases the same entity type participates more than once in relationship type in different roles. In such cases the role name become essential for distinguishing the meaning of each participation. Such relationship types are called recursive relationships.3.11. What is meant by a recursive relationship type? Give some examples of recursive relationship types.Recursive relationship is the entity type participates more than once in a relationship type in different role.For example. A department manger is the supervisor of the employee work for the department or a supervisee of a general manger of a company.3.16. Consider the following set of requirements for a UNIVERSITY database that is used to keep track of students’ transcripts. This is similar but not identical to the database shown in Figure 1.2:a. The university keeps track of each students’ name, student number, social security number, current address and phone, permanent address and phone, permanent address and phone, birth data, sex, class ( freshman, sophomore,… graduate), major department, minor department (if any), and degree program (B.A.,B.S.,…, Ph.D.).Some user applications need to refer to the city, state, and ZIP Code of the student’s permanent address and to the stu-dent’s last name. Both social security number and student number have unique values for each student.b. Each department is described by a name, department code, office num-ber, office phone, and college. Both name and code have unique values for each department.c. Each course has a course name, description, course number, number of semester hours, level, and offering department. The value of the course number is unique for each course.d. Each section has an instructor, semester year, course, and section num-ber. The section number distinguishes sections of the same course that are taught during the same semester/year; its values are 1,2,3,…up to the number of sections taught during each semester.e. A grade report has a student, section, letter grade, and numeric grade (0,1,2,3, or ,4).Design an ER schema for this application, and draw an ER diagram for the schema. Specify key attributes of each entity type, and structural constraints on each relationship type. Note any unspecified requirements, and make appropriate assumptions to make the specification complete.3.17. Composite and multivalued attributes can be nested to any number of lev-els. Suppose we want to design an attribute for a STUDENT entity type to keep track of previous college education. Such anattribute will have one entry for each college previously attended, and each such entry will have oneposed of college name, start and end dates, degree entries (degrees awarded at that college, if any), and transcript entries (courses completed at that col - lege, if any). Each degree entry contains the degree name and the month and year the degree was awarded, and each transcript entry contains a course name, semester, year, and grade. Design an attribute to hold this informa-tion. Use the conventions of Figure 3.5.{ PreviousEducation ( CollegeName, StartDate, EndDate,{ Degree (DegreeName, Month, Year) },{ Transcript (CourseName, Semester, Year, Grade) } ) }3.27. Cardinality ratios often dictate the detailed design of a database. The cardi-nality ratio depends on the real-world meaning of the entity types involved and is defined by the specific application. For the binary relationships below, suggest cardinality ratios based on the common-sense meaning of the entity types. Clearly state any assumptions you make. Entity 1 Cardinality Ratio Entity 21. STUDENT SOCLAL_SECURITY_CARD2. STUDENT TEACHER3. CLASSROOM WALL4. COUNTRY CURRENT_PRESIDENT5. COURSE TEXTBOOK6. ITEM (that can be ORDER found in an order)7. STUDENT CLASS8. CLASS INSTRUCTOR9. INSTRUCTOR OFFICE10. EBAY_AUCTION_ EBAY_BIDITEMEntity 1 Cardinality Ratio Entity 21. Student1-manyA student may have morethan one social security card (legally with the same unique


View Full Document

UT Dallas CS 6385 - hw3-answer

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

03LP_su

03LP_su

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

22DYNPR

22DYNPR

3 pages

21B&C

21B&C

2 pages

20BBEX0

20BBEX0

3 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download hw3-answer
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view hw3-answer and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view hw3-answer 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?