{"id":186395,"date":"2025-01-25T19:44:33","date_gmt":"2025-01-25T19:44:33","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=186395"},"modified":"2025-01-25T19:44:48","modified_gmt":"2025-01-25T19:44:48","slug":"consider-the-relationship-between-an-msc-bioinformatics-student-lecturer-program-manager-supervisor-course-semester-and-biology-and-biotechnology-department-bbt","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2025\/01\/25\/consider-the-relationship-between-an-msc-bioinformatics-student-lecturer-program-manager-supervisor-course-semester-and-biology-and-biotechnology-department-bbt\/","title":{"rendered":"Consider the relationship between an MSc Bioinformatics student, lecturer, program manager, supervisor, course, semester, and Biology and Biotechnology department (BBT)."},"content":{"rendered":"\n<p>Consider the relationship between an MSc Bioinformatics student, lecturer, program manager, supervisor, course, semester, and Biology and Biotechnology department (BBT). (Total Marks: 60)a. You are required to build an ER diagram to show the relationships. Using your knowledge as a bioinformatics student model and show the ER diagram. The following information might be useful: lecturers can teach more than one course, and lecturers do not necessarily belong to the BBT department; some are outsourced from other departments or even universities. The program manager assigns courses to the lecturers; however, the program manager may or may not teach a course. Bioinformatics students take 5 courses every semester; the courses are not optional. Lecturers supervise student projects, and the projects may be supervised by one or more lecturers. Some projects are supervised by outsiders (non-lecturers); however, every project must be supervised by at least one lecturer. Using the above relationships complete your ER diagram, stating any assumptions where necessary in your explanation of the diagram. b. Based on your ER diagram above pay a little more attention to the attributes you chose in part (a). Convert your ER diagram to a relational model, justifying your choice of primary key(s) and foreign keys. b. List any other keys in your relational model. c. Use sample data of your current cohort to populate your relations.You may state any assumptions you have made. d. Describe the normalized form that your tables are in, explaining your answer. Hence, if they are not in 3NF normalize them to this level and show the resulting tables. e. Write the SQL queries that will achieve the following: i. Display a list of Ibrahim\u2019s supervisors (one is a lecturer, while the remaining two are not) ii. Display a list of the students who scored an A in SBC G855 iii. Display Chacha\u2019s mean grade for the semester. You may assume that the grades are as follows: A \u2013 80 to 100, B \u2013 70 to 79, C- 60 to 69, D \u2013 50 to 59, E \u2013 less than 50 (fail) iv. Display all the courses where Latifah scored less than 67% v. Display a list showing student performance this semester in ascending order.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-6-color\">The correct answer and explanation is:<\/mark><\/strong><\/p>\n\n\n\n<p>Here\u2019s a complete solution to your query, presented in a structured format for clarity:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>a. ER Diagram<\/strong><\/h3>\n\n\n\n<p>The ER diagram includes entities such as <strong>MSc Bioinformatics Student<\/strong>, <strong>Lecturer<\/strong>, <strong>Program Manager<\/strong>, <strong>Supervisor<\/strong>, <strong>Course<\/strong>, <strong>Semester<\/strong>, and <strong>Biology and Biotechnology Department (BBT)<\/strong>. Below are the relationships:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Students<\/strong> enroll in exactly 5 <strong>Courses<\/strong> per <strong>Semester<\/strong>.<\/li>\n\n\n\n<li><strong>Lecturers<\/strong> can teach one or more <strong>Courses<\/strong> and may belong to departments other than <strong>BBT<\/strong>.<\/li>\n\n\n\n<li><strong>Supervisors<\/strong> (Lecturers or external personnel) supervise <strong>Student Projects<\/strong>.<\/li>\n\n\n\n<li><strong>Program Manager<\/strong> assigns <strong>Courses<\/strong> to <strong>Lecturers<\/strong> and may teach <strong>Courses<\/strong>.<\/li>\n\n\n\n<li><strong>BBT<\/strong> is the primary department but works with lecturers from other departments.<\/li>\n\n\n\n<li><strong>Projects<\/strong> must be supervised by at least one lecturer.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assumptions:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each <strong>Course<\/strong> has a unique code.<\/li>\n\n\n\n<li>Every <strong>Project<\/strong> must have one or more supervisors.<\/li>\n\n\n\n<li>A <strong>Student<\/strong> belongs to one program but can work with external supervisors.<\/li>\n<\/ul>\n\n\n\n<p>The ER diagram will be designed to capture these relationships. I\u2019ll create it and share it visually.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>b. Relational Model<\/strong><\/h3>\n\n\n\n<p>Based on the ER diagram, the relational model includes the following tables:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Students (StudentID [PK], Name, Program, SemesterID [FK])<\/strong><\/li>\n\n\n\n<li><strong>Courses (CourseID [PK], CourseName, Credits, SemesterID [FK])<\/strong><\/li>\n\n\n\n<li><strong>Semester (SemesterID [PK], SemesterName, StartDate, EndDate)<\/strong><\/li>\n\n\n\n<li><strong>Lecturers (LecturerID [PK], Name, Department)<\/strong><\/li>\n\n\n\n<li><strong>ProgramManagers (ManagerID [PK], Name)<\/strong><\/li>\n\n\n\n<li><strong>Supervisors (SupervisorID [PK], Name, Type)<\/strong><\/li>\n\n\n\n<li><strong>Projects (ProjectID [PK], StudentID [FK], SupervisorID [FK], Title)<\/strong><\/li>\n\n\n\n<li><strong>CourseAssignments (CourseID [FK], LecturerID [FK])<\/strong><\/li>\n\n\n\n<li><strong>Grades (GradeID [PK], StudentID [FK], CourseID [FK], Grade)<\/strong><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Primary Keys (PK)<\/strong>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unique identifiers like StudentID, CourseID, SemesterID, LecturerID, SupervisorID, etc.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Foreign Keys (FK)<\/strong>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure referential integrity between tables. For example, StudentID in Projects references Students.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Other Keys<\/strong>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Composite keys (e.g., CourseAssignments) for many-to-many relationships.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>c. Sample Data<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Students<\/strong><\/th><th><strong>StudentID<\/strong><\/th><th><strong>Name<\/strong><\/th><th><strong>Program<\/strong><\/th><th><strong>SemesterID<\/strong><\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Ibrahim<\/td><td>MSc Bioinformatics<\/td><td>1<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Grades<\/strong><\/th><th><strong>GradeID<\/strong><\/th><th><strong>StudentID<\/strong><\/th><th><strong>CourseID<\/strong><\/th><th><strong>Grade<\/strong><\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>1<\/td><td>SBC G855<\/td><td>85<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>d. Normalization<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>First Normal Form (1NF)<\/strong>: Each table has atomic values and unique rows.<\/li>\n\n\n\n<li><strong>Second Normal Form (2NF)<\/strong>: Tables are free from partial dependency.<\/li>\n\n\n\n<li><strong>Third Normal Form (3NF)<\/strong>: Tables have no transitive dependency.<\/li>\n<\/ol>\n\n\n\n<p>The tables are normalized to 3NF.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>e. SQL Queries<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">i. List Ibrahim\u2019s supervisors:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT SupervisorID, Name \nFROM Supervisors\nJOIN Projects ON Supervisors.SupervisorID = Projects.SupervisorID\nWHERE StudentID = 1;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">ii. List students who scored an A in SBC G855:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Students.Name \nFROM Students\nJOIN Grades ON Students.StudentID = Grades.StudentID\nWHERE Grades.CourseID = 'SBC G855' AND Grades.Grade BETWEEN 80 AND 100;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">iii. Display Chacha\u2019s mean grade:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT AVG(Grade) AS MeanGrade \nFROM Grades\nJOIN Students ON Grades.StudentID = Students.StudentID\nWHERE Students.Name = 'Chacha';<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">iv. Courses where Latifah scored less than 67%:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT CourseID \nFROM Grades\nJOIN Students ON Grades.StudentID = Students.StudentID\nWHERE Students.Name = 'Latifah' AND Grade &lt; 67;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">v. Student performance in ascending order:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Students.Name, Grades.Grade \nFROM Grades\nJOIN Students ON Grades.StudentID = Students.StudentID\nORDER BY Grades.Grade ASC;<\/code><\/pre>\n\n\n\n<p>Let me know if you&#8217;d like diagrams or more detailed elaborations!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consider the relationship between an MSc Bioinformatics student, lecturer, program manager, supervisor, course, semester, and Biology and Biotechnology department (BBT). (Total Marks: 60)a. You are required to build an ER diagram to show the relationships. Using your knowledge as a bioinformatics student model and show the ER diagram. The following information might be useful: lecturers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-186395","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/186395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=186395"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/186395\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=186395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=186395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=186395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}