Hello
I have a simple database query which I am sure that Access (or even Excel) can do easily but I can't think of the right way to go about it.
The relevent data is arranged in a single massive table.
There is a series of fields with demographic data, then a series of dates when the lab samples were processed, then a series of fields with text data all of which needs analysis when the query is complete.
Each record is based on a unique lab specimen number so there are lots of lab specimens per patient. Every recored includes the patient number but, as above, there may be many records with the same patient number. In fact, in the example below the sample for blood and the sample for csf will have different lab specimen numbers but the same patient number.
An example:
Lab specimen number
Patient number
Sample type, either blood or csf
Date of result
There are lots of other fields but these are the ones I want to search on.
So, firstly I want:
All patients who have a result for both blood and csf
Secondly I want
All patients who have had a blood result within 24 hours of their csf result.
Can anyone nudge me in the right direction.
Thanks
R
I have a simple database query which I am sure that Access (or even Excel) can do easily but I can't think of the right way to go about it.
The relevent data is arranged in a single massive table.
There is a series of fields with demographic data, then a series of dates when the lab samples were processed, then a series of fields with text data all of which needs analysis when the query is complete.
Each record is based on a unique lab specimen number so there are lots of lab specimens per patient. Every recored includes the patient number but, as above, there may be many records with the same patient number. In fact, in the example below the sample for blood and the sample for csf will have different lab specimen numbers but the same patient number.
An example:
Lab specimen number
Patient number
Sample type, either blood or csf
Date of result
There are lots of other fields but these are the ones I want to search on.
So, firstly I want:
All patients who have a result for both blood and csf
Secondly I want
All patients who have had a blood result within 24 hours of their csf result.
Can anyone nudge me in the right direction.
Thanks
R
Last edited: