SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
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

Contenu connexe

En vedette

Tour Poster
Tour PosterTour Poster
Tour Posternimh55
 
Magallanes
MagallanesMagallanes
MagallanesNatii
 
Greece(Nx Power Lite)
Greece(Nx Power Lite)Greece(Nx Power Lite)
Greece(Nx Power Lite)RoThia
 
Unvasodeleche
UnvasodelecheUnvasodeleche
Unvasodelecheronny
 
Llm Em Direito Empresarial
Llm Em Direito EmpresarialLlm Em Direito Empresarial
Llm Em Direito Empresarialucammaster
 
Core System + Web Shop
Core System + Web ShopCore System + Web Shop
Core System + Web Shopdaceti
 
Humanage Company Profile 2007
Humanage Company Profile 2007Humanage Company Profile 2007
Humanage Company Profile 2007humanage
 
Magallanes
MagallanesMagallanes
Magallaneshubee
 
20070705志明公益講座-談創新突破格局
20070705志明公益講座-談創新突破格局20070705志明公益講座-談創新突破格局
20070705志明公益講座-談創新突破格局goriko
 
Creo Recreo Y Aprendo Webquest
Creo Recreo Y Aprendo WebquestCreo Recreo Y Aprendo Webquest
Creo Recreo Y Aprendo WebquestLuis Vilchez
 
Endicott College
Endicott CollegeEndicott College
Endicott Collegekinship
 
Noche Cultural
Noche CulturalNoche Cultural
Noche Culturalvoluntario
 
Magallanes
MagallanesMagallanes
MagallanesLukitazz
 

En vedette (20)

Tour Poster
Tour PosterTour Poster
Tour Poster
 
Magallanes
MagallanesMagallanes
Magallanes
 
Greece(Nx Power Lite)
Greece(Nx Power Lite)Greece(Nx Power Lite)
Greece(Nx Power Lite)
 
Unvasodeleche
UnvasodelecheUnvasodeleche
Unvasodeleche
 
Llm Em Direito Empresarial
Llm Em Direito EmpresarialLlm Em Direito Empresarial
Llm Em Direito Empresarial
 
Adimark Junio 2007
Adimark Junio 2007Adimark Junio 2007
Adimark Junio 2007
 
Core System + Web Shop
Core System + Web ShopCore System + Web Shop
Core System + Web Shop
 
Humanage Company Profile 2007
Humanage Company Profile 2007Humanage Company Profile 2007
Humanage Company Profile 2007
 
Magallanes
MagallanesMagallanes
Magallanes
 
S F M
S F MS F M
S F M
 
Esencia
EsenciaEsencia
Esencia
 
Magallanes
MagallanesMagallanes
Magallanes
 
20070705志明公益講座-談創新突破格局
20070705志明公益講座-談創新突破格局20070705志明公益講座-談創新突破格局
20070705志明公益講座-談創新突破格局
 
Creo Recreo Y Aprendo Webquest
Creo Recreo Y Aprendo WebquestCreo Recreo Y Aprendo Webquest
Creo Recreo Y Aprendo Webquest
 
Endicott College
Endicott CollegeEndicott College
Endicott College
 
Magallanes
MagallanesMagallanes
Magallanes
 
Noche Cultural
Noche CulturalNoche Cultural
Noche Cultural
 
2007 Ala
2007 Ala2007 Ala
2007 Ala
 
Magallanes
MagallanesMagallanes
Magallanes
 
Refranes
RefranesRefranes
Refranes
 

Similaire à XYZ University Student Records Database

4. case study
4. case study4. case study
4. case studykhoahuy82
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasexabhaysonone0
 
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdf
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdfExercise 2.1 Explain the accompanying terms quickly trait, space, e.pdf
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdfapoorvikamobileworld
 
CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:DeanMurphys
 
Introduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESIntroduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESDHIVYADEVAKI
 
Basics of Normalization with Examples
Basics of Normalization  with ExamplesBasics of Normalization  with Examples
Basics of Normalization with ExamplesSanjeev Kumar Jaiswal
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagramMayank Jain
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMSkoolkampus
 
Similarity computation exploiting the semantic and syntactic inherent structu...
Similarity computation exploiting the semantic and syntactic inherent structu...Similarity computation exploiting the semantic and syntactic inherent structu...
Similarity computation exploiting the semantic and syntactic inherent structu...Joydeep Mondal
 
27f157al5enhanceder diagram-111005002740-phpapp02
27f157al5enhanceder diagram-111005002740-phpapp0227f157al5enhanceder diagram-111005002740-phpapp02
27f157al5enhanceder diagram-111005002740-phpapp02marangburu42
 

Similaire à XYZ University Student Records Database (20)

4. case study
4. case study4. case study
4. case study
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex
 
ERModel1.pdf
ERModel1.pdfERModel1.pdf
ERModel1.pdf
 
Introduction er & eer
Introduction er &  eerIntroduction er &  eer
Introduction er & eer
 
Introduction er & eer
Introduction er & eerIntroduction er & eer
Introduction er & eer
 
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdf
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdfExercise 2.1 Explain the accompanying terms quickly trait, space, e.pdf
Exercise 2.1 Explain the accompanying terms quickly trait, space, e.pdf
 
1. University Example.pdf
1. University Example.pdf1. University Example.pdf
1. University Example.pdf
 
CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:
 
Introduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESIntroduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIES
 
Object oriented data model
Object oriented data modelObject oriented data model
Object oriented data model
 
ER diagram
ER diagramER diagram
ER diagram
 
Basics of Normalization with Examples
Basics of Normalization  with ExamplesBasics of Normalization  with Examples
Basics of Normalization with Examples
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Erd examples
Erd examplesErd examples
Erd examples
 
Similarity computation exploiting the semantic and syntactic inherent structu...
Similarity computation exploiting the semantic and syntactic inherent structu...Similarity computation exploiting the semantic and syntactic inherent structu...
Similarity computation exploiting the semantic and syntactic inherent structu...
 
Database part3-
Database part3-Database part3-
Database part3-
 
Checklist for Academic CV 2019
Checklist for Academic CV 2019Checklist for Academic CV 2019
Checklist for Academic CV 2019
 
27f157al5enhanceder diagram-111005002740-phpapp02
27f157al5enhanceder diagram-111005002740-phpapp0227f157al5enhanceder diagram-111005002740-phpapp02
27f157al5enhanceder diagram-111005002740-phpapp02
 
Er diagrams
Er diagramsEr diagrams
Er diagrams
 

Plus de variable_orr

Plus de variable_orr (11)

Private
PrivatePrivate
Private
 
nice yaar
nice yaarnice yaar
nice yaar
 
Open Document V1.1
Open Document V1.1Open Document V1.1
Open Document V1.1
 
Music mobile
Music mobileMusic mobile
Music mobile
 
Open Document V1.1
Open Document V1.1Open Document V1.1
Open Document V1.1
 
Again music
Again musicAgain music
Again music
 
Ethics
EthicsEthics
Ethics
 
Music and XML again
Music and XML againMusic and XML again
Music and XML again
 
Lessing
LessingLessing
Lessing
 
BEL110 presentation
BEL110 presentationBEL110 presentation
BEL110 presentation
 
Activity recognition for video surveillance
Activity recognition for video surveillanceActivity recognition for video surveillance
Activity recognition for video surveillance
 

Dernier

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Dernier (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

XYZ University Student Records Database

  • 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