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

  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