Hi I am having problems trying to get two tables to show reference each other correctly.
Here is the problem:
What are the Lab_Test_Result for Visit with number less than 7? Include the Visit_Number, Lab_Order_Number, Result_Code Result_Reading, and the Result Units.
This is what I got, but its giving me too many outputs.
SELECT Visit_Number, Lab_Order_Number, Result_Code, Result_Reading, Result_Units
FROM Lab_Test_Result, Visit
WHERE Visit_Number < 7
ORDER By Result_Code, Visit_Number;
Gave me like 400 answers.
Here is the problem:
What are the Lab_Test_Result for Visit with number less than 7? Include the Visit_Number, Lab_Order_Number, Result_Code Result_Reading, and the Result Units.
This is what I got, but its giving me too many outputs.
SELECT Visit_Number, Lab_Order_Number, Result_Code, Result_Reading, Result_Units
FROM Lab_Test_Result, Visit
WHERE Visit_Number < 7
ORDER By Result_Code, Visit_Number;
Gave me like 400 answers.