SlideShare a Scribd company logo
1 of 3
Download to read offline
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

More Related Content

What's hot

Analysis of algorithn class 2
Analysis of algorithn class 2Analysis of algorithn class 2
Analysis of algorithn class 2
Kumar
 
Exception Handling
Exception HandlingException Handling
Exception Handling
backdoor
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentation
Alizay Khan
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ARADHYAYANA
 

What's hot (20)

Binary search tree
Binary search treeBinary search tree
Binary search tree
 
Java arrays
Java arraysJava arrays
Java arrays
 
Java Constructors
Java ConstructorsJava Constructors
Java Constructors
 
DBMS Keys
DBMS KeysDBMS Keys
DBMS Keys
 
Analysis of algorithn class 2
Analysis of algorithn class 2Analysis of algorithn class 2
Analysis of algorithn class 2
 
Exception Handling
Exception HandlingException Handling
Exception Handling
 
trees in data structure
trees in data structure trees in data structure
trees in data structure
 
Doubly linked list (animated)
Doubly linked list (animated)Doubly linked list (animated)
Doubly linked list (animated)
 
Database management system Lecture 7 : Strong and weak entity sets
Database management system Lecture 7 : Strong and weak entity setsDatabase management system Lecture 7 : Strong and weak entity sets
Database management system Lecture 7 : Strong and weak entity sets
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentation
 
Data Structures
Data StructuresData Structures
Data Structures
 
Linked list
Linked listLinked list
Linked list
 
B+ tree intro,uses,insertion and deletion
B+ tree intro,uses,insertion and deletionB+ tree intro,uses,insertion and deletion
B+ tree intro,uses,insertion and deletion
 
Java Arrays
Java ArraysJava Arrays
Java Arrays
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)
 
Four Types of Data Models
Four Types of Data ModelsFour Types of Data Models
Four Types of Data Models
 
Graph traversal-BFS & DFS
Graph traversal-BFS & DFSGraph traversal-BFS & DFS
Graph traversal-BFS & DFS
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
 
Sets in python
Sets in pythonSets in python
Sets in python
 
Recovery & Atom city & Log based Recovery
Recovery & Atom city & Log based RecoveryRecovery & Atom city & Log based Recovery
Recovery & Atom city & Log based Recovery
 

Viewers also liked (7)

About experience with InGenious
About experience with InGeniousAbout experience with InGenious
About experience with InGenious
 
The famous people of Estonia
The famous people of EstoniaThe famous people of Estonia
The famous people of Estonia
 
Gift to a friend
Gift to a friendGift to a friend
Gift to a friend
 
Estonia
EstoniaEstonia
Estonia
 
Estonia Power Point
Estonia Power PointEstonia Power Point
Estonia Power Point
 
Estonia Country PowerPoint Presentation Content
Estonia Country PowerPoint Presentation ContentEstonia Country PowerPoint Presentation Content
Estonia Country PowerPoint Presentation Content
 
Estonia
EstoniaEstonia
Estonia
 

Similar to Copy Of Univ

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
apoorvikamobileworld
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
Mayank Jain
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 

Similar to Copy Of Univ (20)

Unit i b(er model)
Unit i b(er model)Unit i b(er model)
Unit i b(er model)
 
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
 
ER diagram powerpoint
ER diagram powerpointER diagram powerpoint
ER diagram powerpoint
 
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
 

More from variable_orr (13)

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
 
Univ
UnivUniv
Univ
 
Univ
UnivUniv
Univ
 
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
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

Copy Of 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