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

  • 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
  • Good Essays

    Acme Global Consulting

    • 678 Words
    • 3 Pages

    Hello sirs, my name is , I am forwarding this correspondence to give you options pertaining to your database management system or DBMS. One of these options is to install an Entity Relationship Model or E-R model DBMS, the reason I am suggesting an E-R model is there are a number of advantages to installing and managing this type of DBMS in your company. I will provide you with information on the advantages of them in this proposal.…

    • 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
  • Powerful Essays

    b) 10 Convert the one table in the previous question to a relational database design. Fill each table in your…

    • 1445 Words
    • 6 Pages
    Powerful Essays
  • 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

    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
  • 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
  • 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

    Unit 53 Final Paper

    • 383 Words
    • 2 Pages

    Write a query that displays the last name (with the first letter in uppercase and all other letters in lowercase) and the length of the last name for all employees whose name starts with the letters “J”, “A”, or “M.” Give each column an appropriate label. Sort the results by the employee’s last names.…

    • 383 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Early Distributions

    • 479 Words
    • 4 Pages

    early distributions Instructions for Form 5329 (2012) http://www.irs.gov/pub/irs-pdf/i5329.pdf Line 2 The additional tax on early distributions does not apply to the distributions described below. Enter on line 2 the amount that can be excluded. In the space provided, enter the applicable exception number (01-12).…

    • 479 Words
    • 4 Pages
    Good Essays
  • Good Essays

    References: Coronel, C., Morris, S., & Rob, P. (2013). Database systems: Design, implementation, and management (10th ed.). Independence, KY: Cengage.…

    • 906 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
  • 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