Normalize the following table

Assignment Help Database Management System
Reference no: EM13910054

Problem 1: Normalization (15 points)
Normalize the following table upto and including the 3NF. Submit a 1 page printout of only the final set of normalized tables in Data Architect. Just use Data Architect to do the tables. No need for E-R, mapping, relationships etc. Just tables. State all assumption, logic, and reasoning, to explain your work.

Work = Projname + Projmgr + Empid + Hours + Empname + Budget + StartDate + Salary + Empmgr + Empdept + Rating

Assumptions:

1. Each project has a unique name, but names of employees and managers are not unique.
2. Each project has one manager, whose name is stored in Projmgr.
3. Many employees may be assigned to work on each project, and an employee may be assigned to more than one project. Hours tells the number of hours per week that a particular employee is assigned to work on a particular project.
4. Budget stores the amount budgeted for a project, and Startdate gives the starting date for a project.
5. Salary gives the annual salary for an employee.
6. Empmgr gives the names of the employee's manager, who is not the same as the project manager.
7. Empdept gives the employee's department. Department names are unique. The employee's manager is the manager of the employee's department.
8. Rating gives the employee's rating for a particular project. The project manager assigns the rating at the end of the employee's work on that project.



Problem 2: Normalization (15 points)
Normalize the following tables upto and including the 3NF. Submit a 1 page printout of only the final set of normalized tables in Data Architect. Just use Data Architect to do the tables. No need for E-R, mapping, relationships etc. Just tables. State all assumption, logic, and reasoning, to explain your work.

Employee = Empid + Empname + SSN + Empadd + Empphone + DOB + Sex + DateHired + Lastdateworked + Averrating + WordProc + Typing + Filing + Bookkping + Steno + Availcode

Client = Clid + Clname + Cladd + Clphone + Contact + BillingYTD + PaymentYTD

Job = Job# + Jobtitle + Startdate + Expectenddate + Dailyrate + Dailyhours + Reporttoname + Reporttoadd + Reporttophone + Jobstatus + Clid*

Invoice = Invoice# + Invoicedate + Oldbal + Totcharges + Newbal + Totpaid + Clid*

Payroll = Check# + Paydate + Gross + Fed + Fica + State + Local + Net + Grossytd + Netytd + Fedytd + Ficaytd + Stateytd + Localytd + Empid*

Job-Employee = Job# + Empid + Ratername + Ratingdate + Emprating

Assumptions:

1. Employee address depends on employee phone.
2. Reporttoadd depends on Reporttophone.
3. Dailyrate depends on Jobtitle.
4. Net depends on combination of Gross, Fed, Fica, State, Local
5. Netytd depends on Grossytd, Fedytd, Ficaytd, Stateytd, Localytd
6. Newbal depends on Oldbal, Totcharges.
7. Net, Netytd, Grossytd, Fedytd, Ficaytd, Stateytd, Localytd are calculated fields.
8. Newbal is sum of oldbal and totcharges.
9. We would normally want the Reporttoadd with the Job record. Similarly, the Dailyrate is a piece of information that is integral to a Job record.



Problem 3: SQL (20 points)

Perform the following queries on the Hospital1.DB using SQL Anywhere (START EARLY!).

a. Which patients have purchased the drug "Tylenol"? List the names and
addresses. Arrange them in descending order of patient name.

b. List the physician names and the number of visits supervised by each physician. Arrange them in descending order of number of visits.

c. List the Phy# and names of all physicians whose name starts with the letter "M."

d. List the names, addresses and phone#s of patients living in Fremont or San Jose. Arrange them in ascending order of the zip.

e. List the Drug# and description of drugs that have not been prescribed. Arrange them in ascending order of description.

f. How many patients are there in the database? Give the count.

g. List Visit#, PatID, Phy#, Drug#, Qnty and Amount. Calculate Amount as Price*Qnty.

What to Submit for Problem 3?

Submit a report with the following (similar to the SQL tutorial):

For each query: a serial number, english version, a SQL version, and output, neatly
formatted. Highlight all relevant information. CHECK YOUR ANSWERS! DON'T SUBMIT ANSWERS THAT DON'T MAKE SENSE.

Reference no: EM13910054

Questions Cloud

Change in temperature or amount of gas : A sample of hydrogen gas (H2) has a volume of 5.0 L and a pressure of 1.0 atm. What is the new pressure, in atmospheres, if its volume decreases to 2.0 L with no change in temperature or amount of gas?
Binding energy of the electron : An xray photon of wavelength 0.989 nm strikes a surface. The emitted electron has a kinetic energy of 969eV. What is the binding energy of the electron in kJ/mol?
Explain and critique the pecking-order theory : What signals are provided to investors when a company obtains debt financing? What signals are provided to investors when a company obtains equity financing?
What is the probability of observing a sample proportion : Assuming that p equals .60 and the sample size is 1,000, what is the probability of observing a sample proportion that is at least .64?
Normalize the following table : Normalize the following table upto and including the 3NF. Submit a 1 page printout of only the final set of normalized tables in Data Architect. Just use Data Architect to do the tables. No need for E-R, mapping, relationships etc. Just tables. State..
Describe the basic tenants of object-orientation : Write a function reduce($arr, $func) that takes an array and a function as a parameter. The reduce function should apply the parameter function to each element of the array in succession to produce a single result - Write a function modeMaker() tha..
What is the probability that the average fill for the drums : If we draw a random sample of 100 drums from the shipment, what is the probability that the average fill for the 100 drums is between 49.88 gallons and 50.12 gallons?
Inventory management : Inventory Management, What additional cost is the shop incurring by using this current order size rather than the economic order quantity?
Calculate weighted average cost of capital using book value : Promo Pak has compiled the following financial data: Calculate the weighted average cost of capital using book value weights.

Reviews

Write a Review

Database Management System Questions & Answers

  Designing and documenting your system

Create a document named: surnameStudentIDAssign1.doc .  In your document, you must include the following section headings:  System Overview, Class Diagram, Class Descriptions, Testing.

  Draw an e-r diagram

Draw an E-R Diagram and draw an E-R Diagram for Student Information System.

  Design an relational model model of a database

Design an Relational Model (RM) model of a database (DB) that will be useful for each of the chosen enterprises. (Hint: You may choose to translate the 2 ER model designs you created ).

  What are four pieces that make up key performance indicator

What are the four pieces that make up a Key Performance Indicator (KPI)? Provide an example of a KPI based on the AdventureWorks database.

  Making a simple xml tree out of the given data

Making a simple XML tree out of the given data and using Xpath to navigate through it

  Discussed and implemented the mvc design pattern

Find another design pattern which could be used for web based development and write a synopsis on it, pointing out whether it would be applicable for use within your project or not. Comment as applicable on design patterns that other class members..

  Determine the relationship between those areas

For this question, need data mining analysis (using k-means clustering algorithm) shows the relationship between poverty area and violent crime rate (homicide) depending on any one of the datasets attached with this assignment.

  Create database for easydrive school of motoring

Create mission statements and mission objectives for database systems explained in the following case study EasyDrive School of Motoring. Also in mission objectives include 10 reports that the database system must support

  Design a database for a small medical practice

Narrative description of the "medical practice" database assignment: Design a database for a small medical practice with several physicians. The purpose of the database is to support the administrative functions such as billing, scheduling and pat..

  Design supermarket management system

Design supermarket management system with it's problem definition

  Describe the results and your analysis and observations

In a word document, describe the results and your analysis and observations. Discuss any analysis techniques you performed and their results to support the differences (or similarities) you discovered

  He club keeps track of mail and telephone contact

you are working for country club with thousands of members. you have been tasked with designing a database to keep

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd