PATIENT(PatientID, PatName, PatientDOB, PatientDiagnosis, PatientPhone, PatientReferID)



Similar documents
SAMPLE FINAL EXAMINATION SPRING SESSION 2015

Entity - Relationship Modelling

ER modelling, Weak Entities, Class Hierarchies, Aggregation

Question 1. Relational Data Model [17 marks] Question 2. SQL and Relational Algebra [31 marks]

An Example: Video Rental System

A Short Tutorial on Using Visio 2010 for Entity-Relationship Diagrams

BIRTH TO KINDERGARTEN COLLABORATIVE. Recommended Elements of a Birth to Kindergarten Online Associate and Baccalaureate Degrees (5.22.

9. The ad hoc joint committee drafts a formal program implementation proposal. (See Attachment B for a description of the contents of this document.

Designated Responsible Authority (DRA) Training. Fleet and Transit Services

Comp 3311 Database Management Systems. 2. Relational Model Exercises

Database Design Final Project

Rutland Community School Tel: REGISTRATION FORM

Education Next Program on Education Policy and Governance Survey 2014

The Accelerated Master s Degree in Psychology

ABERDEEN HALL SCHOOL FINANCIAL ASSISTANCE POLICY

Conceptual Design: Entity Relationship Models. Objectives. Overview

Preparing the Engineer of 2020 Community and Two-Year College Survey PERSONAL INFORMATION

Maryland Higher Education Commission Documents

Postgraduate Study. The route to excellence AN INTRODUCTION TO

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Welcome to the Data Analytics Toolkit PowerPoint presentation on EHR architecture and meaningful use.

ID&T PhD Handbook 1. Appendix. Instructional Design & Technology

Dr. Marie Kerns, PsyD, LMFT University Tower-UCI Adjacent 4199 Campus Dr. Ste.550 Irvine, CA Client Intake.

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

Exercise 8: SRS - Student Registration System

Bachelor of Arts Internship. FHSS 202/302 Faculty of Humanities and Social Sciences Te Wāhanga Aronui

FOUNDATION FIELD PLACEMENT PLANNING GUIDE

Data Modelling And Normalisation

ALGEBRA 2/ TRIGONOMETRY

Exercise 1: Relational Model

Math 143: College Algebra Fall Weeks

Introduction to SAS ETL Studio

Distance Education Strategic Plan

The University of Western Ontario Arthur Labatt Family School of Nursing. MScN Thesis Guidelines

Important Steps to Becoming a Masters of Social Work (MSW)

New Member Sign Up Form

Fundamentals of Database System

Andrew Elman LPC ATR PROFESSIONAL DISCLOSURE STATEMENT

Higher National Unit specification: general information. Relational Database Management Systems

STUDY AT ONE OF THE WORLD S BEST UNIVERSITIES

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

BIRTH TO KINDERGARTEN ONLINE ASSOCIATE AND BACCALAUREATE WORK GROUP RECOMMENDATIONS

Guidance on writing a business plan for your project

Ordering Books Textbooks for Dual Enrollment courses should be ordered online and picked up at the Broward College Bookstore.

Topic: Relationships in ER Diagram and Relationships in MS Access

Query Builder. The New JMP 12 Tool for Getting Your SQL Data Into JMP WHITE PAPER. By Eric Hill, Software Developer, JMP

Broward College Dual Enrollment Ordering and Returning Textbooks

Canadian Association of Speech-Language Pathologists and Audiologists: University Programs in Audiology 2010

Uses Crows feet notation for ER Diagrams in ERwin

Advanced Diploma in Financial Markets

If your schedule allows you might consider joining ROTC.

How to Request a Service Authorization for Non-Emergency Medical Transportation and Accommodation Services

Mosaic Arlington Counseling Center 817 W. Park Row Arlington, Texas Phone: (817) NEW CLIENT INFORMATION

Math 35 Section Spring Class meetings: 6 Saturdays 9:00AM-11:30AM (on the following dates: 2/22, 3/8, 3/29, 5/3, 5/24, 6/7)

Evening and Online Degree Orientation. Division of Extended Learning

Student Massage Clinic

AGREEMENT AND INFORMATION

Admission Application

Florida Senate SB 938

COLLEGE INFORMATION GUIDE

EXTENDED LEARNING MODULE A

Wayne Physical Medicine & Rehabilitation Associates 401 Hamburg Turnpike, Suite 105 Wayne, NJ 07470

Garland s Christian Counseling Center

Annual Report Interdisciplinary Studies B.A., B.S., M.A., M.S.

Designing Databases. Introduction

Indiana University Office of Online Education. Program Approval Form

Sociology Department Faculty Expectations Handbook For Appointment, Reappointment, Promotion, and Tenure

Student Guide for HCA 399: Health Care Administration Practicum Academic Year

Math 143: College Algebra Spring Week Session

Rules governing masters studies at the Reykjavík University School of Law

Physician Recruitment Budgetary Planning: Case Study (Example)

NYC Common Online Charter School Application

Regulations for Military Student Success

Southern Connecticut State University School of Graduate Studies Graduate Assistantship Application (GA)

Foundations of Information Management

FAP Modules Frequently Asked Questions (FAQ) Updated: April 27, 2015

Selecting a School-Based Oral Health Care Program

DbSchema Tutorial with Introduction in SQL Databases

National Quality Framework Educator to Child Ratios and Qualifications Fact Sheet October 2011

Your Medicine: Play It Safe

Important Steps to a Masters or PhD in Public Health

How to Apply Online Select School and Program

Undergraduate Teaching Assistant Handbook

medication Consequences For Minor Students

In This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Boyce-Codd Normal Form

SLO/SAO CHANGES AS A RESULT OF ASSESSMENT

Helix Practice Manager

SUPERVISION STAFF TO CHILD RATIOS AND GROUP SIZES

M.Ed. in Educational Leadership w/principal Certification or Certification only

Scotland Your project business plan

Preparing for Grad School

Pain Clinic Psychological Service. Information for patients Department of Psychological Services

from Larson Text By Susan Miertschin

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

Cynthia Bednarchik, MSN, APN, FNP-BC

MIDLANDS STATE UNIVERSITY

Masters of Science in Clinical Psychology: MFT & LPCC Program Information Packet

Background Questionnaire for Diaconate Aspirants and Wives

Transcription:

Part 1 Use the following database to answer all questions in Part 1 PATIENT(PatientID, PatName, PatientDOB, PatientDiagnosis, PatientPhone, PatientReferID) THERAPIST(TherapistID, TherapistName, TherapistDegree, TherapistPhone) APPOINTMENT(AppointmentID, PatientID, TherapistID, AppointmentDate, AppointmentTime, Fee) EXERCISE(ExerciseID, ExerciseDescription, ExercisePicture) ASSIGNMENT(AppointmentID, ExerciseID, NumberOfReps) The primary key fields are underlined. PatientRefID is a foreign key value that matches a PatientID of another record in the table. Create a relational algebra queries to answer the following questions. Question 1 Write a query to display the names of all patients and the name of the referring patient. Question 2 Write a query to display, for all appointments on 10/8/2013, the name of the patient, the name of the therapist, and the appointment time. Question 3 Write a query to display the names and phone of all patients and therapists. Assume that no patient is also a therapist. There should be just two columns in this display. Question 4 Write a query to display the average fee paid for an appointment. Question 5 Write a query to display the number of appointments made by the patient with patientid 23. Question 6 Write a query to display the name of all therapists and the sum of all fees paid to that therapist. Question 7 Write a query to display the names of all patients born before 1950 with a diagnosis of Back Pain. Question 8 Write a query to display, for all exercise assignments for the patient with patid 23, the appointment date, the therapist, the exercise description, and the number of reps.

Question 9 Write a query to print the names of all therapists who have never treated a patient with a diagnosis of Back Pain. Question 10 Write a query to print the names of all patients who have made an appointment with every therapist.

Part 2 Convert the following ER diagram into a set of tables. EmergContact mentors Responsible PersonID name cellphone homephone w orkphone C Parent Employee employeeid name phone pay parent_of assigned ChildID DOB Name supervises Child has Allergy Substance Severity participates FieldTrip fieldtripid cost date does on Activity ActivityID description timeframe cost per activity availability email taken for Medication MedName Dosage DeliveryMethod emergency for relationship distance from

Part 3 Start with the following ER diagram: Book BookID Price Title Author Publisher buys Customer CustomerID Name email Modify it to create a new EER diagram. Assume that the following must be represented: A Book could be a Textbook or a Fiction Book. It could be both. It could be neither. Textbooks have a subject area. Fiction Books have a time period and a locale. Customers could be students or faculty. A customer could be someone other than a student or a faculty member. A customer cannot be both student and faculty. Faculty members have an office, an office phone, and a department. Students have a major. Students can be further classified into GraduateStudents and UndergraduateStudents. No student is both undergraduate and graduate. All students are one of these. Undergraduate students have a class year. Graduate Students have a degree program and a finish date. Faculty can order textbooks to be used for their courses. A faculty member can order many textbooks, and a textbook can be ordered by many faculty. We keep track of the CourseID and the OrderDate for each order. Students can rent textbooks. A student can rent many textbooks, and a textbook can be rented by many students. For each textbook rental, we keep track of the RentalDate and the ReturnDate. Graduate students can mentor undergraduate students. An undergraduate student has just one mentor, but a graduate student can mentor many undergraduates. Any other assumptions you make, let me know.

Part 4 Make an ER diagram that could store information about programs offered by a nature education center, the children who enroll in the programs, and the volunteers who teach in the programs. For each program, we keep track of the program date, the start time, the program length, the title, a description, and the recommended age group. For each child, we keep track of the name, the birthdate, and the phone number. For each volunteer, we keep track of the name, the phone number, and the email. A volunteer can have many skills. For each skill, we keep track of the description of the skill and the degree of expertise. We keep track of which children who attend our programs are siblings. A child can have many siblings. We keep track of which children are enrolled in each program. A program can have many children enrolled in it, and a child can be enrolled in many programs. We keep track of the volunteers for each program. A program can have many volunteers, and a volunteer can participate in many programs. Each program must have exactly one head volunteer. A volunteer can be the head volunteer for many programs.