G
Gamefewel
Could you please tell me what is wrong with this SQL statement. I am trying
to get the patient info from one table and the results from another table. I
want the Diastolic to be over 90 AND the systolic to be over 140. I am
getting a data mismatch error. THe diastolic and systolic are text.
Thanks in advance for your help.
SELECT Patients.[Last Name], Patients.[First Name], Patients.Phone, [Lab
Results].Systolic, [Lab Results].Diastolic FROM Patients INNER JOIN [Lab
Results] ON Patients.MRN = [Lab Results].MRN WHERE [Systolic]>140 And
[Diastolic]>90 ORDER BY Patients.[Last Name], Patients.[First Name];
to get the patient info from one table and the results from another table. I
want the Diastolic to be over 90 AND the systolic to be over 140. I am
getting a data mismatch error. THe diastolic and systolic are text.
Thanks in advance for your help.
SELECT Patients.[Last Name], Patients.[First Name], Patients.Phone, [Lab
Results].Systolic, [Lab Results].Diastolic FROM Patients INNER JOIN [Lab
Results] ON Patients.MRN = [Lab Results].MRN WHERE [Systolic]>140 And
[Diastolic]>90 ORDER BY Patients.[Last Name], Patients.[First Name];