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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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