Project 7 - Patient Diagnosis Report (SQL)
Project 7 - Patient Diagnosis Report (SQL)
DESCRIPTION
The data analyst of a hospital wants to store the patient diagnosis reports with the details of the
doctors and the patients for good medical practice and continuity of care.
Objective:
The database design helps to retrieve, update, and modify the patient’s details to keep track of the
patient's health care routine.
Task to be performed:
Write a query to create a patients table with the fields such as date, patient id, patient name,
age, weight, gender, location, phone number, disease, doctor name, and doctor id.
Write a query to insert values into the patient’s table.
Write a query to display the total number of patients in the table.
Write a query to display the patient id, patient name, gender, and disease of the patient
whose age is maximum.
Write a query to display patient id and patient name with the current date.
Write a query to display the old patient’s name and new patient's name in uppercase.
Write a query to display the patient’s name along with the length of their name.
Write a query to display the patient’s name, and the gender of the patient must be
mentioned as M or F.
Write a query to combine the names of the patient and the doctor in a new column.
Write a query to display the patients’ age along with the logarithmic value (base 10) of their
age.
Write a query to extract the year from the given date in a separate column.
Write a query to return NULL if the patient’s name and doctor’s name are similar else return
the patient’s name.
Write a query to return Yes if the patient’s age is greater than 40 else return No.
Write a query to display the doctor’s duplicate name from the table.
Tools: MySQL
Dataset: https://drive.google.com/file/d/1KdAO07bNxShVGbRWe-l-aSyY1EPPSMXF/view?
usp=drive_link