Create a view called todays_appointment_schedule (can only create views in your student database on the database...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a view called "todays_appointment_schedule" (can only create views in your student database on the database server). The view should list all appointments for the current day. Include the appointment date and time (only show the hours and minutes), the doctor's name, the patient's name and phone number, and done status. Order the view into doctor's name, then order by the appointment time. Show a list of appointments for March 2023. Provide the doctor and patients full name, disease name (if any diagnosed), date & time of appointment together in this format 'YYYY-MON-DD HH:MM', consultant room number used, and status (i.e., Done). Show these appointments in date & time order. (Note: bonus 1 mark (not increasing total past 15 for this assignment) if you can cater for "any diagnosed" disease including no diagnoses for an appointment, i.e., no disease name) List all appointments made by patients in the suburb WINDSOR, during the 2022 year that have not been diagnosed with any diseases. Show the name of the patient and the date and time of the appointment. Display the name of the patient(s) and their age, who is/are the oldest and youngest on record in the clinic database who live in the state of Victoria. 5. Show a list of the consultation room numbers, along with a count of the number of times they have been used for an appointment (don't count the appointments that have not been completed/done). Show the room number, name of room and the appointment usage count. 6. There has been some really bad appointment session at the clinic where multiple diseases have been diagnosed. Generate a list of all the appointments where the doctor has diagnosed more than 5 diseases. Show the full name of the patient and doctor (Add "Dr" title to start of doctor's full name), the date of the appointment, the room number in which the consultation was in and the number of diagnosed diseases during that appointment. Please show this data in doctor first name and then date of appointment order. 7. List all disease names and a count of how many times each disease has been diagnosed at the clinic. The list is of rarely identified diseases, so show only diseases that have a diagnosis count of less than 10. Note: Zero is less than 10. 8. Show all the patients that have visited (i.e., a visit is ONE appointment) the clinic more than 150 times. Show the full name of the patient, also show the number of visits, number of different doctors seen, total number of tests ordered, unique diseases diagnosed and unique set of drugs prescribed for each patient. Please order it by surname. 9. The Victorian patients are being sent Easter cards. Clinic needs to create a Easter card address list. Generate a query that includes both patients and doctor's data. Show the ID (patientID or doctorID), concatenate a "P" in front of patientIDs and a "D" in front of doctorIDs, full name (add "Dr" title to start of given name for doctors), address, suburb, postcode. Sort list into suburb and then name order. Only select face2face patients that have been a patient (have an appointment) at the clinic in 2023, and only select face2face doctors that have seen a patient in the clinic in 2023. 10. List all female doctors, that are either active or have resigned, that have worked in the clinic between 2 and 10 years. Show the name of the doctor and the name of their supervisor and the years worked. 11. The following two queries are related. a) Create a view that shows a count of appointments that each doctor has attended. The view should have the following fields: doctor's id and count of appointments. b) Using the view in the previous question, show the doctor that has the minimum and maximum number of appointments. Show the name of the doctor. 12. Choose one questions (from questions 1-11 of this assignment) and create a visualisation, using a tool like Excel, Power BI, Tableau or Orange. Attach the created image ONLY to your submission. The visualisation will be judged on how well it represents the question chosen, how clear the various axis and legends are label, and the appropriateness of the title of the visualisation. Feel free to tweak the output of the query to improve visualisation you want to generate. (3 marks) 13. Produce a report of your own design and write a query to solve it. Marks will be awarded for report design (i.e., How useful is the report), complexity of the query and originality. Please provide: a) Business question b) SQL query c) Visualisation (using a tool like Excel, Tableau or Orange) - attached image only to submission Note: you cannot use the MySQL LIMIT operator because it is NOT standard SQL. CASE STUDY Medical Doctor's SuperClinic (MDS) A SuperClinic locate in the northern suburbs has various information system solution to support the operation of the business. One of the information systems is a structured database that handles the day-to-day function of the clinic. It stores the information about appointment scheduled between doctors and patients, information about referrals, requests for test(s) to help diagnose medical conditions and some notes. The clinic has a reception and waiting area with a television showing the daily soap series. There are also 4 examination rooms to see patients, along with various storage areas, a staff room, toilets for public, patients and staff, and a general nurse/lab area. 31'0" DOE Business Storage -70' 0"- Drug & Supplies Triage Nurse Lab Patient RR Doctor Office Staff Bath Storage Employee Lounge 3 621-919) Exam Exam Exam Phones, Server, Exam Storage Relational Model DOCTOR DoctorID Surname Given Dob Sex Joined Resigned Address Suburb Postcode Phone SupervisorID PATIENT APPOINTMENT PatientID AppointmentID Surname Given Dob Sex Phone dateOfAppointment timeOfAppointment Done PatientID DoctorID Occupation RoomNo BloodType Address Suburb State Postcode Email ROOM RoomNo RoomName Level Facility* DISEASE DiseaseID diseaseName ClassificationID TEST TestID Name DRUG DrugID itemCode drugName longName Restriction Repeats manufacturerCode REQUEST RequestID AppointmentID requestType DiseaseID TestID DrugID CLASSIFICATION ClassificationID Name MANUFACTURER manufacturerCode Name Address Phone Entity-Relationship Diagram ROOM TEST ses PATIENT mas APPOINTMENT REQUEST DRUG belong CLASSIFICATION attend supervises BR: request type is T-test; D-diagnosis; P-prescription; these dictates which entity is connected TEST/DISEASE/DRUG DISEASE DOCTOR CLASSIFICATION Kas Create a view called "todays_appointment_schedule" (can only create views in your student database on the database server). The view should list all appointments for the current day. Include the appointment date and time (only show the hours and minutes), the doctor's name, the patient's name and phone number, and done status. Order the view into doctor's name, then order by the appointment time. Show a list of appointments for March 2023. Provide the doctor and patients full name, disease name (if any diagnosed), date & time of appointment together in this format 'YYYY-MON-DD HH:MM', consultant room number used, and status (i.e., Done). Show these appointments in date & time order. (Note: bonus 1 mark (not increasing total past 15 for this assignment) if you can cater for "any diagnosed" disease including no diagnoses for an appointment, i.e., no disease name) List all appointments made by patients in the suburb WINDSOR, during the 2022 year that have not been diagnosed with any diseases. Show the name of the patient and the date and time of the appointment. Display the name of the patient(s) and their age, who is/are the oldest and youngest on record in the clinic database who live in the state of Victoria. 5. Show a list of the consultation room numbers, along with a count of the number of times they have been used for an appointment (don't count the appointments that have not been completed/done). Show the room number, name of room and the appointment usage count. 6. There has been some really bad appointment session at the clinic where multiple diseases have been diagnosed. Generate a list of all the appointments where the doctor has diagnosed more than 5 diseases. Show the full name of the patient and doctor (Add "Dr" title to start of doctor's full name), the date of the appointment, the room number in which the consultation was in and the number of diagnosed diseases during that appointment. Please show this data in doctor first name and then date of appointment order. 7. List all disease names and a count of how many times each disease has been diagnosed at the clinic. The list is of rarely identified diseases, so show only diseases that have a diagnosis count of less than 10. Note: Zero is less than 10. 8. Show all the patients that have visited (i.e., a visit is ONE appointment) the clinic more than 150 times. Show the full name of the patient, also show the number of visits, number of different doctors seen, total number of tests ordered, unique diseases diagnosed and unique set of drugs prescribed for each patient. Please order it by surname. 9. The Victorian patients are being sent Easter cards. Clinic needs to create a Easter card address list. Generate a query that includes both patients and doctor's data. Show the ID (patientID or doctorID), concatenate a "P" in front of patientIDs and a "D" in front of doctorIDs, full name (add "Dr" title to start of given name for doctors), address, suburb, postcode. Sort list into suburb and then name order. Only select face2face patients that have been a patient (have an appointment) at the clinic in 2023, and only select face2face doctors that have seen a patient in the clinic in 2023. 10. List all female doctors, that are either active or have resigned, that have worked in the clinic between 2 and 10 years. Show the name of the doctor and the name of their supervisor and the years worked. 11. The following two queries are related. a) Create a view that shows a count of appointments that each doctor has attended. The view should have the following fields: doctor's id and count of appointments. b) Using the view in the previous question, show the doctor that has the minimum and maximum number of appointments. Show the name of the doctor. 12. Choose one questions (from questions 1-11 of this assignment) and create a visualisation, using a tool like Excel, Power BI, Tableau or Orange. Attach the created image ONLY to your submission. The visualisation will be judged on how well it represents the question chosen, how clear the various axis and legends are label, and the appropriateness of the title of the visualisation. Feel free to tweak the output of the query to improve visualisation you want to generate. (3 marks) 13. Produce a report of your own design and write a query to solve it. Marks will be awarded for report design (i.e., How useful is the report), complexity of the query and originality. Please provide: a) Business question b) SQL query c) Visualisation (using a tool like Excel, Tableau or Orange) - attached image only to submission Note: you cannot use the MySQL LIMIT operator because it is NOT standard SQL. CASE STUDY Medical Doctor's SuperClinic (MDS) A SuperClinic locate in the northern suburbs has various information system solution to support the operation of the business. One of the information systems is a structured database that handles the day-to-day function of the clinic. It stores the information about appointment scheduled between doctors and patients, information about referrals, requests for test(s) to help diagnose medical conditions and some notes. The clinic has a reception and waiting area with a television showing the daily soap series. There are also 4 examination rooms to see patients, along with various storage areas, a staff room, toilets for public, patients and staff, and a general nurse/lab area. 31'0" DOE Business Storage -70' 0"- Drug & Supplies Triage Nurse Lab Patient RR Doctor Office Staff Bath Storage Employee Lounge 3 621-919) Exam Exam Exam Phones, Server, Exam Storage Relational Model DOCTOR DoctorID Surname Given Dob Sex Joined Resigned Address Suburb Postcode Phone SupervisorID PATIENT APPOINTMENT PatientID AppointmentID Surname Given Dob Sex Phone dateOfAppointment timeOfAppointment Done PatientID DoctorID Occupation RoomNo BloodType Address Suburb State Postcode Email ROOM RoomNo RoomName Level Facility* DISEASE DiseaseID diseaseName ClassificationID TEST TestID Name DRUG DrugID itemCode drugName longName Restriction Repeats manufacturerCode REQUEST RequestID AppointmentID requestType DiseaseID TestID DrugID CLASSIFICATION ClassificationID Name MANUFACTURER manufacturerCode Name Address Phone Entity-Relationship Diagram ROOM TEST ses PATIENT mas APPOINTMENT REQUEST DRUG belong CLASSIFICATION attend supervises BR: request type is T-test; D-diagnosis; P-prescription; these dictates which entity is connected TEST/DISEASE/DRUG DISEASE DOCTOR CLASSIFICATION Kas
Expert Answer:
Related Book For
Posted Date:
Students also viewed these databases questions
-
Princess Beatrice LTD. Started a compensatory stock options plan for all its 500 employees Jan 1, 20x1 when its common shares were trading at $21.50 per share. Each Employee would be allowed to...
-
How do regulatory mandates and legal frameworks, both domestically and internationally, serve as catalysts for organizational change initiatives, shaping compliance strategies and governance...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
If Y = $200 billion, c = 0.75, autonomous consumption = $10 billion, and T = $20 billion, induced consumption expenditure is Question 5 options: a) $135 billion. b) $200 billion. c) $180 billion. d)...
-
In today's global business environment, does the physical location of a business matter?
-
The following data were taken from the financial statements of Hunter Inc. for December 31 of two recent years: Current Year Previous Year Accounts...
-
Cherokee Wood Products Company prepared the following factory overhead cost budget for the Press Department for August of the current year, during which it expected to require 6,000 hours of...
-
The Sharpe Co. just paid a dividend of $1.80 per share of stock. Its target payout ratio is 40 percent. The company expects to have an earnings per share of $4.95 one year from now. a. If the...
-
Taxpayers pay $8,000 in state income taxes and $4,000 in state sales taxes - Taxpayers pay $3,000 in real estate taxes on rental property they have invested for a profit - Taxpayers incur $4,000 in...
-
A dog training business began on December 1. The following transactions occurred during its first month. December 1 Receives $23,000 cash as an owner investment in exchange for common stock. December...
-
4 Identify the strength and weakness of the pre-classical management theory
-
This is 4-year-old Emma. She loves to play with her toys, but she refuses to clean them up when she is asked. Her parents have tried hard to teach her to clean her room. They have offered her...
-
Raner, Harris and Chan is a consulting firm that specializes in information systems for medical and dental clinics. The firm has two offices one in Chicago and one in Minneapolis. The firm classifies...
-
Using systems theory, identify the nature of the time, cost, and quality problems experienced in the Singapore Sports Hub project lifecycle. How are these problems associated with the management...
-
"Turtle Middle School" what is a sample of an assessment research tool that could have been used to avoid the described pitfalls. For example, develop a survey, interview questions, or focus group...
-
Raner, Harris and Chan is a consulting firm that specializes in information systems for medical and dental clinics. The firm has two offices one in Chicago and one in Minneapolis. The firm classifies...
-
3. The following information on age and the number of hours exercised in a week was gathered from 13 members at a small gym. Age Hours 25 36 44 57 25 43 19 33 40 44 28 22 25 6 5 4 6.5 2 5 4 7 4.5 3...
-
Place a tick in the appropriate grid to identify the balance that would be brought down in each of the following named accounts, in the books of Rizwy Mohamed: (a) In the Cash account: if Rizwy...
-
Explain how a local union is formed. What role can a regional, national, or international union play in forming a local union?
-
Meter Services was contracted by the provincial power utility at the end of last year to conduct readings of power meters at customers homes. Meter Services began the work at the start of this year....
-
Choose a union that you are familiar with or that you can research. (You can select either a local of a union or a union as a whole, although this exercise may be easier to conduct if you select a...
-
Consider a publicly-held company whose products you are familiar with. Some examples might include: Access the companys public website and search for its most recent annual report. (Some companies...
-
Use the balance sheet equation to determine the missing values below. Common Assets Liabilities Stock Retained Earnings 320,000 150,000 45,000 ? ? 75,000 30,000 40,000 250,000 90,000 ? 120,000...
-
The following data were obtained from the year-end financial statements of The Arcadia Company: Required Compute the following ratios for The Arcadia Company: (1) Return on Sales, (2) Return on...
Study smarter with the SolutionInn App