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 an update query to select all records in the tbl over

Create an update query to select all records in the tblOverPriced, decrease the Price field values by 10%, run and close the query.

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

  Prepare a 900 word paper discussing the attached case study

prepare a 900 word paper discussing the attached case study burger king beefs up global operations and incorporating

  What is partitioning and why is it useful

What is partitioning? Why is it useful? Give two methods of partitioning. Manage workloads, Mark, update, and remove recommendations

  Define health care database systems

Define health care database systems. Describe how databases are used across the health care industry. Explain the different database architectures including the relational architecture.

  Your lecturer will place several links in interact to a

your lecturer will place several links in interact to a number of relevant articles andor case studies. these will be

  Design and build a small database application

In Word, identify a potential database application. It should be based on data you understand well, such as student data (refer to text), a hobby (see Lesson 8), or a set of data you use on the job. When you have made your choice, proceed to Step ..

  Search and set up the national parks database

create a table named Park. Accept the default ID primary key field with the AutoNumber data type, renaming it as Park ID. Enter at least five additional fields, such as Name, State, Fee, Hours

  Write an sql query

Write an SQL query to get the author of the book "The Alchemist"

  Demonstrate academic and professional literacy

Demonstrate academic and professional literacy by collating theoretical and practical course material into a workable application through understanding concepts and their practical application using .NET.

  You have been hired as the banks director of data security

a large bank has a headquarters location plus several branches in each city in a particular region of the country. as

  The purpose of this assignment is to give you practice with

the purpose of this assignment is to give you practice with creating database structure using sql and using the insert

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