Calculate the total cost for each event

Assignment Help Database Management System
Reference no: EM13910435

Part I: Database Design

Fitchburg ABA Clinic wants to create a database with the following entities:

• Employee
o EmpID
o Name
o Position
o Salary
o DateofHire o DateofBirth o Age
o Skills
o Degrees (i.e. M.S., Ph.D)
o Certifications (i.e. BCBA, SLP)

• Client
o ClientID
o FirstName o LastName o DateofBirth o Age
o Allergies

• Diagnosis
o DiagnosisCode
o Description

• Parent
o ParentID o FirstName o LastName o Address
- Street
- City
- State
- ZipCode
o Telephone

• InsuranceCompany
o InsCoID
o Name
o Address
- Street
- City
- State
- ZipCode
o Telephone

• Therapy
o TherapyID
o Name
o RecommendedUnits
o CostperUnit

• TimeSlot
o TimeslotID o DayofWeek o StartTime o EndTime

• Room
o RoomID
o Capacity
o MaxOccupants

There are also some additional business rules:

1. A parent can have many children (clients.) Also, information can be kept on multiple parents for one child

2. A parent can have more than one insurance policy used for billing. We also want to store the policy number and effective date

3. A client is scheduled for a particular therapy in a particular room during a given timeslot

4. A client can have 1 or more diagnosis codes

5. Keeping track of billing is not included in this application. This is merely a scheduling application.

6. We want to keep track of the date of service for a scheduled therapy as well as the duration

From the ERD shown below design the following:

1. a set of normalized relations
2. the scripts to create the tables defined by step 1

1804_Calculate the total cost for each event.png

Part II

SQL -

Use the Richard's Catering Case Study for the following queries:

1. For each staff member, list the number of events that he or she has worked. Your output should include the last name, first name and the number of events.

2. For each staff member, list the number of each type of event that he or she has worked. Your output should include the last name, first name, event_type and the number of events.

3. Find all maincourses that have not been served at wedding receptions. List out the description.

4. List all dishes that have only been served at night (i.e. start hour >= 6) This the dish description.

5. Calculate the total cost for each event.

Attachment:- richards.pdf

Reference no: EM13910435

Questions Cloud

What would earning share under each financing alternative : If the corporation's earnings before interest and taxes increase to $10,000,000 and the applicable tax rate is 34%, what would the earnings per share be under each financing alternative?
Use the data provided to determine firm''s operating margin : Use the data provided to determine the firm's operating margin, asset turnover, interest burden, financial leverage, income tax rate, and ROE.
Target corporation tgt : Target corporation(TGT)  WACC (weighted average cost of capital) computation for 2010 to 2014
Describe concept related nonqualified deferred compensation : George has been selected as the new Chief Financial Officer of Infrastructure Unlimited and has been issued 10,000 shares of its stock at no cost to him. The stock will vest in increments of 2,000 shares per year over the next five years. Which of..
Calculate the total cost for each event : Find all maincourses that have not been served at wedding receptions. List out the description - Calculate the total cost for each event - Find all maincourses that have not been served at wedding receptions. List out the description.
Calculate a table of interest rates : Calculate a table of interest rates based on the following information: The pure interest rate is 2.5% Inflation expectations for year 1= 2%, year 2 = 4%, years 3-5 = 5%
What is solubility rule : What is solubility rule for 1A group and ammonium? What is solubility rule for acetate and nitrate?
Standard cost is a predetermined amount : standard cost is a predetermined amount that-Should be incurred under relatively efficient operating conditions-Will be incurred for an operation or a specific objective-Must occur for an operation or a specific objective
It architecture or enterprise architecture on information : Ascertain the importance of information management for the company or industry that you have chosen.Analyze the fundamental impact of IT architecture or enterprise architecture on information management for your chosen company or industry. Determine ..

Reviews

Write a Review

Database Management System Questions & Answers

  Create a database design specification

The Enhanced Entity Relationship Diagram (EERD) produced with a drawing or case tool. Your EERD must use a 'standard' notation style such as Crows Foot or Chen.

  Analyze the business activity

Data Files needed for this Case Problem: OBrien.accdb (cont. from Tutorial 3) and Tests.bmp O'Brien Educational ServicesKaren O'Brien is using the OBrien database to track and analyze the business activity of her educational consulting company. T..

  Craete the database to be fault tolerant

Explain the thought process of DBA as they craete the database to be fault tolerant. What policies would you suggest to get this goal?

  What is the value of the symmetric key

Suppose Fred sees your RSA signature on m1 and m2, (i.e., he sees (m1d mod n) and (m2d mod n)). How does he compute the signature on each of m1j mod n (for positive integer j), m1-1 mod n, m1 x m2 mod n, and in general m1j m2k mod n (for arbitrary..

  What would be the yellow margin in the action

What was the total cost (including the costs of raw ingredients) of the function mentioned above and what would be the "red margin" in the action analysis report?

  Role and tasks performed by database administrator

In 250 - 300 words describe role of a database administrator and the tasks performed by this role. Also, describe why this role is important in Database Management.

  Write down responsibilities of database administrator

Write down the responsibilities of the database administrator (DBA)? Could you outline tasks that he/she has to perform, and what could be consequences if these matters are not handled?

  When you add a calculated field to a query it creates a new

When you add a calculated field to a query it creates a new

  How the knowledge and skills taught on the module and course

Each student should submit his or her own critical assessment of the coursework. The evaluation should include a discussion on how the coursework has reinforced (or otherwise) his or her appreciation of the techniques and processes employed in undert..

  Draw a diagram 0 dfd for the order system

Draw a decision tree that describes the merchandise inventory management process.

  Calculate the percentage of time

Let us have a 20MIPS processor, you have to calculate the percentage of time it spends in busy wait loop of a 75-character line printer, when it takes 2 msec to print a character and a total of 665 instructions require to be executed to print a 75..

  Importing and analyzing data for johnson equipment

Importing and Analyzing Data for Johnson Equipment-Johnson Equipment, the medium-sized laboratory equipment manufacturing company where you work, is in the process of acquiring Sloan Manufacturing, a smaller equipment /manufacturer in the same indu..

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