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

  An er diagram for the system

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Create an idefix or er diagram for the database

Import your IDEF1X diagram into Oracle and create the appropriate tables and relationships. Your design should include a specification of tables, attributes, primary and foreign keys, referential integrity constraints, and referential integrity ac..

  Describe the various integrative functions and processes

Describe the various integrative functions and processes

  Google weka and find the homepage for wekawhen you install

google weka and find the homepage for weka.when you install it you may need to change your classpath to reference the

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  What functional dependencies can you identify

Suppose you have a relation schema about teaching classes that has the following attributes: Class, Instructor, Time and Room - based on your understanding of this scenario, what functional dependencies can you identify that hold on this relation?

  How an erd can be taken as a logical representation

Describe how an ERD can be taken as a logical representation, and implemented into a physical representation in a database. Find and explain some more advanced SQL queries that a DBA might use to find some specific information about a database

  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.

  How to perform document classification using tools in weka

How to perform document classification using tools in WEKA

  Raw data representation and interpretation

Raw Data Representation and Interpretation

  Define the importance of various system analysis

By now you should have a "toolbox" full of useful design and analysis tools. List the tools in your toolbox and then write one short paragraph on how you can/will apply them in your careers, lives, etc.

  Draw erd with key attributes and data dictionary

Draw ERD with key attributes. You can use any notation to draw the ERD. Must include legend - Data dictionary for the above scenario

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