) Create a query that returns a list of all patients and their family member (add a column primary member id in the patient table; make one patient as the primary member and then create another column called relationship and add husband, wife, son, daughter etc.)

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter8: Working With Trendlines, Pivottables, Pivotcharts, And Slicers
Section: Chapter Questions
Problem 1AYK
icon
Related questions
Question

Hi, can you please make a query in MySQL based on the given image (Query number 8)? Thank you so much and have great day!

Information
Table: patients
Columns:
int PK
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
varchar(45)
patientID
firstName
lastName
phoneNumber
emailAddress
unit
streetAddress
province
country
city
postalcode
healthInformation
typeofPatient
healthCoverage
Doctors_doctorID
Reports_patientID int
Secretaries_ID
MemberHeadId
Relationship
varchar(45)
int
int
int
varchar(45)
Object Info Session
Transcribed Image Text:Information Table: patients Columns: int PK varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) varchar(45) patientID firstName lastName phoneNumber emailAddress unit streetAddress province country city postalcode healthInformation typeofPatient healthCoverage Doctors_doctorID Reports_patientID int Secretaries_ID MemberHeadId Relationship varchar(45) int int int varchar(45) Object Info Session
8) Create a query that returns a list of all patients and their family member
(add a column primary member id in the patient table; make one patient
as the primary member and then create another column called
relationship and add husband, wife, son, daughter etc.)
Transcribed Image Text:8) Create a query that returns a list of all patients and their family member (add a column primary member id in the patient table; make one patient as the primary member and then create another column called relationship and add husband, wife, son, daughter etc.)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning