Univ

Question 1:

Let us suppose that XYZ University's Administration Office needs a database to handle
student’s transcript data. The following are the requirements:

       The database keeps track of each student's name, enrollment no. (E. No.),
   •
       communication address and phone no., permanent address and phone no., date of
       birth, sex, class, department, college, major subjects (a 4-char code).
       Some applications need to refer individually to the city, state (2-char abbrv.) and
   •
       zip code (some use 5-digit, some use 9) of the student’s address. Some
       applications need to refer to student’s first and last names separately. Enrollment
       no. should be unique number for each student.
       Each department has a name, a 3-char code, location (main building and room
   •
       number), office phone, college, and a list of instructors. Many colleges are
       affiliated to the University. Department names and code are unique, within the
       university.
       Each instructor has his/her enrolment no., first name and last name.
   •
       The course catalog contains the list of courses that XYZ University offers. Each
   •
       course has a number (e.g. 543), name, description, credit hours and department.
       Course numbers are unique within a department, but not unique across the
       university (so taken together, they are unique). Not every course is offered every
       semester.
       Each section has a single instructor (first and last names - no team-taught class),
   •
       semester (1-4) year (2-digit), course number and section number.
       A grade report contains the student's name, E. No, course number and section,
   •
       letter grade (A, B,C, D, E).

Note: If the above user requirements leave out any important detail, assume that it is
handled the way XYZ does things in the real world.

Answer the following questions based on the above requirements and specifications:

       Draw an E-R diagram of the above.
   •
       List all the accompanying attributes/domains (including constraints).
   •
       Convert your E-R diagram to a relational schema:
   •
           o Use naming as specified in the E-R diagram.
           o Use the format as shown in the example below, including:
                       Table name in caps
                       List of attributes with primary key underlined
                       Foreign key specified with table/attribute it references (with ..
                       cascade, it appropriate)
                                                                                   (7 marks)


Answer:
Each department is managed by a chair, and at least one professor. Professors must be assigned to
one, but possibly more departments. At least one professor teaches each course, but a professor
may be on leave and not teach any course. Each course may be taught more than once by
different professors. We know of the department name, the professor name, the
professor employee id, the course names, the course schedule, the term/year that the
course is taught, the departments the professor is assigned to, the department that offers the
course




Identify attribute(s) that uniquely identify each occurrence of that entity.
DEPARTMENT:                        name
DEPT-PROF:                         dept. name
                                   employee id
PROFESSOR:                         employee id
SEMESTER:                          employee id
                                   course name
COURSE:                            course name
STUDENT:                           enrollment number
                                   Semester



Identify Attributes
Identify all entity characteristics relevant to the domain being analyzed.
Excluding those keys already identified:
Schedule, Term, Professor name, Department Chair (which is an employee ID, a foreign
key to Professor)

Map Attributes
Determine which to entity each characteristic belongs. Do not duplicate attributes across
entities. If necessary, contain them in a new, related, entity.
Schedule Semester, term Semester, Chair Department
Department




                    Is
                    Assigned




                   Dept-Prof




   offe
                    has
   rs




                   instructor




                   teaches




                    Semester
Courses
             has




                      Student

  Takes
  exam
          Grade
1 de 3

Recomendados

Copy Of Univ por
Copy Of UnivCopy Of Univ
Copy Of Univvariable_orr
1.1K vistas3 diapositivas
Univ por
UnivUniv
Univvariable_orr
310 vistas3 diapositivas
Example for ER diagram part11 por
Example for ER diagram part11Example for ER diagram part11
Example for ER diagram part11DrMohammed Qassim
15.6K vistas3 diapositivas
Primary Key & Foreign Key part10 por
Primary Key & Foreign Key part10Primary Key & Foreign Key part10
Primary Key & Foreign Key part10DrMohammed Qassim
1.9K vistas5 diapositivas
ER diagram powerpoint por
ER diagram powerpointER diagram powerpoint
ER diagram powerpointSteffi Libarios
550 vistas31 diapositivas
Entity relationship model por
Entity relationship modelEntity relationship model
Entity relationship modelRUpaliLohar
159 vistas27 diapositivas

Más contenido relacionado

Destacado

Presentació Corporativa Consultia 2007(Català) por
Presentació Corporativa Consultia 2007(Català)Presentació Corporativa Consultia 2007(Català)
Presentació Corporativa Consultia 2007(Català)Ciro Alonso
303 vistas17 diapositivas
Cgt por
CgtCgt
CgtGae D'Aloia
207 vistas6 diapositivas
prueba por
pruebaprueba
pruebaelsimon
237 vistas1 diapositiva
Impre por
ImpreImpre
Impremikelet
260 vistas2 diapositivas
B O L I X E por
B O L I X EB O L I X E
B O L I X Ewaxsoul
222 vistas3 diapositivas
MPHS RC Prj por
MPHS RC PrjMPHS RC Prj
MPHS RC PrjMarco Santambrogio
483 vistas55 diapositivas

Destacado(9)

Presentació Corporativa Consultia 2007(Català) por Ciro Alonso
Presentació Corporativa Consultia 2007(Català)Presentació Corporativa Consultia 2007(Català)
Presentació Corporativa Consultia 2007(Català)
Ciro Alonso303 vistas
prueba por elsimon
pruebaprueba
prueba
elsimon237 vistas
Impre por mikelet
ImpreImpre
Impre
mikelet260 vistas
B O L I X E por waxsoul
B O L I X EB O L I X E
B O L I X E
waxsoul222 vistas
Cittadini digitali: come favorire l'accesso all'e-government por Gianni Dominici
Cittadini digitali: come favorire l'accesso all'e-governmentCittadini digitali: come favorire l'accesso all'e-government
Cittadini digitali: come favorire l'accesso all'e-government
Gianni Dominici389 vistas
Promuovere il territorio per promuovere l'innovazione por Gianni Dominici
Promuovere il territorio per promuovere l'innovazionePromuovere il territorio per promuovere l'innovazione
Promuovere il territorio per promuovere l'innovazione
Gianni Dominici415 vistas

Similar a Univ

Unit i b(er model) por
Unit i b(er model)Unit i b(er model)
Unit i b(er model)Rohit Rathi
433 vistas36 diapositivas
Assignment #1Instruction for properly completing the assignment.docx por
Assignment #1Instruction for properly completing the assignment.docxAssignment #1Instruction for properly completing the assignment.docx
Assignment #1Instruction for properly completing the assignment.docxmurgatroydcrista
8 vistas8 diapositivas
sDownload the attached template called INFO620-Assignment1_LastName.docx por
sDownload the attached template called INFO620-Assignment1_LastName.docxsDownload the attached template called INFO620-Assignment1_LastName.docx
sDownload the attached template called INFO620-Assignment1_LastName.docxpotmanandrea
4 vistas8 diapositivas
4. case study por
4. case study4. case study
4. case studykhoahuy82
5K vistas15 diapositivas
ERModel1.pdf por
ERModel1.pdfERModel1.pdf
ERModel1.pdfMirHazarKhan1
9 vistas33 diapositivas
Introduction er & eer por
Introduction er &  eerIntroduction er &  eer
Introduction er & eersaurabhshertukde
2.2K vistas61 diapositivas

Similar a Univ(20)

Unit i b(er model) por Rohit Rathi
Unit i b(er model)Unit i b(er model)
Unit i b(er model)
Rohit Rathi433 vistas
Assignment #1Instruction for properly completing the assignment.docx por murgatroydcrista
Assignment #1Instruction for properly completing the assignment.docxAssignment #1Instruction for properly completing the assignment.docx
Assignment #1Instruction for properly completing the assignment.docx
murgatroydcrista8 vistas
sDownload the attached template called INFO620-Assignment1_LastName.docx por potmanandrea
sDownload the attached template called INFO620-Assignment1_LastName.docxsDownload the attached template called INFO620-Assignment1_LastName.docx
sDownload the attached template called INFO620-Assignment1_LastName.docx
potmanandrea4 vistas
4. case study por khoahuy82
4. case study4. case study
4. case study
khoahuy825K vistas
Let us consider the following relational database Profess.pdf por response3
Let us consider the following relational database  Profess.pdfLet us consider the following relational database  Profess.pdf
Let us consider the following relational database Profess.pdf
response33 vistas
please help!! it is for an intro to java class so it must be simple!.pdf por aioils
please help!! it is for an intro to java class so it must be simple!.pdfplease help!! it is for an intro to java class so it must be simple!.pdf
please help!! it is for an intro to java class so it must be simple!.pdf
aioils2 vistas
CSI2132: Database I – Assignment 3: por DeanMurphys
CSI2132: Database I – Assignment 3:CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:
DeanMurphys134 vistas
Introduction basic schema and SQL QUERIES por DHIVYADEVAKI
Introduction basic schema and SQL QUERIESIntroduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIES
DHIVYADEVAKI51 vistas
Solution Manual for Fundamentals of Database Systems – Ramez Elmasri, Shamkan... por HenningEnoksen
Solution Manual for Fundamentals of Database Systems – Ramez Elmasri, Shamkan...Solution Manual for Fundamentals of Database Systems – Ramez Elmasri, Shamkan...
Solution Manual for Fundamentals of Database Systems – Ramez Elmasri, Shamkan...
HenningEnoksen15.1K vistas
Lab 2 Modifying a Database Design  Due Week 4 and worth 75 points.docx por ssuser47f0be
Lab 2 Modifying a Database Design  Due Week 4 and worth 75 points.docxLab 2 Modifying a Database Design  Due Week 4 and worth 75 points.docx
Lab 2 Modifying a Database Design  Due Week 4 and worth 75 points.docx
ssuser47f0be2 vistas
Enhanced E-R diagram por Mayank Jain
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
Mayank Jain13.3K vistas
08. Object Oriented Database in DBMS por koolkampus
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus9.7K vistas

Más de variable_orr

Private por
PrivatePrivate
Privatevariable_orr
400 vistas1 diapositiva
nice yaar por
nice yaarnice yaar
nice yaarvariable_orr
462 vistas1 diapositiva
Open Document V1.1 por
Open Document V1.1Open Document V1.1
Open Document V1.1variable_orr
359 vistas738 diapositivas
Music mobile por
Music mobileMusic mobile
Music mobilevariable_orr
403 vistas24 diapositivas
Open Document V1.1 por
Open Document V1.1Open Document V1.1
Open Document V1.1variable_orr
356 vistas738 diapositivas
Again music por
Again musicAgain music
Again musicvariable_orr
545 vistas74 diapositivas

Más de variable_orr(11)

Último

How to empty an One2many field in Odoo por
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in OdooCeline George
87 vistas8 diapositivas
Ch. 7 Political Participation and Elections.pptx por
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptxRommel Regala
111 vistas11 diapositivas
Class 9 lesson plans por
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plansTARIQ KHAN
51 vistas34 diapositivas
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx por
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxMs. Pooja Bhandare
113 vistas51 diapositivas
Monthly Information Session for MV Asterix (November) por
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)Esquimalt MFRC
72 vistas26 diapositivas
ICS3211_lecture 09_2023.pdf por
ICS3211_lecture 09_2023.pdfICS3211_lecture 09_2023.pdf
ICS3211_lecture 09_2023.pdfVanessa Camilleri
115 vistas10 diapositivas

Último(20)

How to empty an One2many field in Odoo por Celine George
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
Celine George87 vistas
Ch. 7 Political Participation and Elections.pptx por Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala111 vistas
Class 9 lesson plans por TARIQ KHAN
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plans
TARIQ KHAN51 vistas
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx por Ms. Pooja Bhandare
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Ms. Pooja Bhandare113 vistas
Monthly Information Session for MV Asterix (November) por Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC72 vistas
REPRESENTATION - GAUNTLET.pptx por iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood138 vistas
Ch. 8 Political Party and Party System.pptx por Rommel Regala
Ch. 8 Political Party and Party System.pptxCh. 8 Political Party and Party System.pptx
Ch. 8 Political Party and Party System.pptx
Rommel Regala54 vistas
CUNY IT Picciano.pptx por apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 vistas
Education and Diversity.pptx por DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar193 vistas
Psychology KS5 por WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch119 vistas

Univ

  • 1. Question 1: Let us suppose that XYZ University's Administration Office needs a database to handle student’s transcript data. The following are the requirements: The database keeps track of each student's name, enrollment no. (E. No.), • communication address and phone no., permanent address and phone no., date of birth, sex, class, department, college, major subjects (a 4-char code). Some applications need to refer individually to the city, state (2-char abbrv.) and • zip code (some use 5-digit, some use 9) of the student’s address. Some applications need to refer to student’s first and last names separately. Enrollment no. should be unique number for each student. Each department has a name, a 3-char code, location (main building and room • number), office phone, college, and a list of instructors. Many colleges are affiliated to the University. Department names and code are unique, within the university. Each instructor has his/her enrolment no., first name and last name. • The course catalog contains the list of courses that XYZ University offers. Each • course has a number (e.g. 543), name, description, credit hours and department. Course numbers are unique within a department, but not unique across the university (so taken together, they are unique). Not every course is offered every semester. Each section has a single instructor (first and last names - no team-taught class), • semester (1-4) year (2-digit), course number and section number. A grade report contains the student's name, E. No, course number and section, • letter grade (A, B,C, D, E). Note: If the above user requirements leave out any important detail, assume that it is handled the way XYZ does things in the real world. Answer the following questions based on the above requirements and specifications: Draw an E-R diagram of the above. • List all the accompanying attributes/domains (including constraints). • Convert your E-R diagram to a relational schema: • o Use naming as specified in the E-R diagram. o Use the format as shown in the example below, including: Table name in caps List of attributes with primary key underlined Foreign key specified with table/attribute it references (with .. cascade, it appropriate) (7 marks) Answer:
  • 2. Each department is managed by a chair, and at least one professor. Professors must be assigned to one, but possibly more departments. At least one professor teaches each course, but a professor may be on leave and not teach any course. Each course may be taught more than once by different professors. We know of the department name, the professor name, the professor employee id, the course names, the course schedule, the term/year that the course is taught, the departments the professor is assigned to, the department that offers the course Identify attribute(s) that uniquely identify each occurrence of that entity. DEPARTMENT: name DEPT-PROF: dept. name employee id PROFESSOR: employee id SEMESTER: employee id course name COURSE: course name STUDENT: enrollment number Semester Identify Attributes Identify all entity characteristics relevant to the domain being analyzed. Excluding those keys already identified: Schedule, Term, Professor name, Department Chair (which is an employee ID, a foreign key to Professor) Map Attributes Determine which to entity each characteristic belongs. Do not duplicate attributes across entities. If necessary, contain them in a new, related, entity. Schedule Semester, term Semester, Chair Department
  • 3. Department Is Assigned Dept-Prof offe has rs instructor teaches Semester Courses has Student Takes exam Grade