Preview

Week2 Discussion2 DBMS

Satisfactory Essays
Open Document
Open Document
480 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Week2 Discussion2 DBMS
Given the business rule “an employee may have many degrees,” discuss its effect on attributes, entities, and relationships. (Hint: Remember what a multivalued attribute is and how it might be implemented.)
Multivalued attributes are attributes that can have multiple values. In the given business rule it is clearly that degree (attribute) may have multiple values in it. In this scenario we may have three possibilities
1. Degrees can be stored in as single attribute named Emp_Degree in Employee table with attributes Emp_no, Emp_Name, Emp_Degree.
Employee Table
Emp_No
Emp_Name
Emp_Degree
1
Bangar Reddy Aluri
B.TECH,M.S,MPS
2
John
MBBS, MD
3
Anthony
B.A,LLB

We can identify the problem in this approach. It is now complicated to search Employee table for any particular Emp_Degree values as each employees have many number of degrees. It is not possible to write a query that will individually list degrees that are present in Emp_Degree. This approach has many conflicts with characteristics of relation table, i.e. “Each row/column intersection represents a single data value” This approach would result to use lot of complex queries which could lead to performance degrade as it consumes lot of time when used for reporting purposes, having seen the above problems it is considered as a bad design while designing a relational database management system.

2. Create several new attributes, one for each value of the multivalued attribute as shown in table below.
Employee Table
Emp_no
Emp_Name
Degree1
Degree2
Degree3
1
Bangar Reddy Aluri
B.TECH
MS
MPS
2
John
MBBS

MD
3
Anthony
BA
LLB

By looking at the above design there is a possibility of two problems, firstly the existence of blank spaces in the table that are the NULL values, while designing the database it is recommended to eliminate unnecessary null values which are existing in the above table. Second problem is the above table has only three fields to accommodate the degrees as per our business rule, here we cannot



References: 1) Database system Design implementation and management 9th edition Coronel, C., Morris, S.,& Rob, P(2011). 2) http://www.tomjewett.com/dbdesign/dbdesign.php?page=phone.php

You May Also Find These Documents Helpful

  • Good Essays

    Cis 515week 3

    • 1024 Words
    • 4 Pages

    The above ERM represents the data store relationships that are based on several assumptions. The first assumption is that the faculty is capable of teaching more than one course and that students can only enroll in one course curriculum. Another assumption is that faculty only teach at one campus and that teach faculty is assigned one Dean. Finally, another assumption is that some campuses have particular schools, whereas others do not. Therefore, the data represented in the ERM shows that relationships between the data structure, but it is based on assumptions that must be taken into account for the final proposal of the university’s requirements.…

    • 1024 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    The Entity Relationship Diagram, also known as (ERD) demonstrates the relationship between data in the new database. ERD shows the logical path that the data follows. The data model gives one understanding and the visual representation to observe the different phases of the database and determine the path the information is pulled or stored from. Learning Team D demonstrate linking the different tables in the Fleet Truck Maintenance database. The creation of the logical path predicts the flow of the data entered and the tables relationship to other tables in the database.…

    • 553 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignment Homework

    • 1073 Words
    • 5 Pages

    2. Write queries that performs a join, a subquery, a correlated subquery using the student, enrollment, grade, and zipcode tables. Execute each query to show that it produces the same results. (15 pts)…

    • 1073 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Unit 53 Final Paper

    • 383 Words
    • 2 Pages

    5. Create a query to display the last name and salary for all employees. Format the salary to be 15 characters long, left-padded with the $ symbol. Label the column as SALARY.…

    • 383 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Acme Global Consulting

    • 678 Words
    • 3 Pages

    Another advantage of having an E-R model DBMS is the components of this model. This will allow your different employee groups to distinguish the differences between these different components in the model. Some of the components are entities that represent a person, place event or an object in the real world that is modeled in the DBMS. Another component is attributes; this represents the defining qualities or properties of the entity type. One more entity is called a…

    • 678 Words
    • 3 Pages
    Good Essays
  • Best Essays

    Rob, P., & Coronel, C. (2002). Database systems: design, implementation, and management (5th ed.). Boston, MA: Course Technology.…

    • 1383 Words
    • 5 Pages
    Best Essays
  • Satisfactory Essays

    week 4 Discussion 1

    • 447 Words
    • 2 Pages

    If we are going to develop Database, we might as well make it look good. By doing this, we can improve the database ability to provide information and to enhance the operational characteristics. It is important to understand that normalization cannot be relied on to make designs by itself but will need to by create separately. The following two methods can be used to improve the design of database system.…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SQL Queries

    • 423 Words
    • 2 Pages

    Given the table information above, if you were asked to create an Access query that showed the Student Name and Grade for all students taking a class in Room H201, what tables would you need and how would you link them together?…

    • 423 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cis 111

    • 790 Words
    • 4 Pages

    The relational model would provide end users with improved access, by allowing quick answers to ad hoc queries, which reduces the probability of inconsistent data.…

    • 790 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Database for Scheduling

    • 528 Words
    • 3 Pages

    In the Entity-Relationship Diagram (ERD), we start by identifying the entities. In this instance we will use Instructors and Courses as are entities. Next we will identify how they relate to one another. In this model the Instructors and Courses will relate by Instructor ID and Course ID. Once we have a good ERD we need to review it for normalization which is done automatically in software like Microsoft Access. Once both of these are satisfied we can create the database and check for errors. (Shelly & Rosenblatt, 2012).…

    • 528 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Instructions HW1

    • 1434 Words
    • 7 Pages

    This schema describes a simple university setting. The first table keeps track of which students are enrolled…

    • 1434 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    Information Systems

    • 386 Words
    • 2 Pages

    The students and their course names make the tables related. The student ID correlates to the students' last names and first names and the course ID. Therefore, this is the primary key. The course ID is the foreign key of the Course Table.…

    • 386 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Physical Database Design

    • 971 Words
    • 10 Pages

    Analyze each of the following situations and, using the physical database design techniques discussed in the class, state how you would modify the logical design shown to improve performance or otherwise accommodate it.…

    • 971 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    2.1 Explain the distinctions among the terms primary key, candidate key, and superkey. Answer: A superkey is a set of one or more attributes that, taken collectively, allows us to identify uniquely an entity in the entity set. A superkey may contain extraneous attributes. If K is a superkey, then so is any superset of K. A superkey for which no proper subset is also a superkey is called a candidate key. It is possible that several distinct sets of attributes could serve as candidate keys. The primary key is one of the candidate keys that is chosen by the database designer as the principal means of identifying entities within an entity set. 2.2 Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. Answer: See Figure 2.1 2.3 Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted. Answer: See Figure 2.2 2.4 A university registrar’s office maintains data about the following entities: (a) courses, including number, title, credits, syllabus, and prerequisites; (b) course offerings, including course number, year, semester, section number, instructor(s), timings, and classroom; (c) students, including student-id, name, and program; and (d) instructors, including identification number, name, department, and title. Further, the enrollment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modeled. Construct an E-R diagram for the registrar’s office. Document all assumptions that you make about the mapping constraints. Answer: See Figure 2.3. In the answer…

    • 2116 Words
    • 9 Pages
    Satisfactory Essays
  • Powerful Essays

    Concurrency control

    • 1856 Words
    • 8 Pages

    1. In this exercise, you will see how to rollback or commit transactions. By default PostgreSQL commits each SQL statement as soon as it is submitted. To prevent the transaction from committing immediately, you have to issue a command begin; to tell PostgreSQL to not commit immediately. You can issue any number of SQL statements after this, and then either commit; to commit the transaction, or rollback; to rollback the transaction. To see the effect, execute the following commands one at a time…

    • 1856 Words
    • 8 Pages
    Powerful Essays