W
woods1119
I am trying to query from a query to find how many people have a duration of
<3yrs.
Query#1 (qrySeen2008) has:
ingPtID
LastOfdtmVisitDate
I need to find out of these people who has a duration <3yrs. I need to use
strDoFrstSx from tPtData to do so.
So I made another query using ingPtID from qrySeen2008 and added
strDoFrstSx. I know I could just add a "Between" statement but I was
wondering if there is a way other than adding "Between 01/01/2005 and
12/31/2008". I made this in Design view but the SQL statement is below.
SELECT qrySeen2008_Last_Visit.ingPtID, tPtData.strDoFrstSx
FROM qrySeen2008_Last_Visit INNER JOIN tPtData ON
qrySeen2008_Last_Visit.ingPtID = tPtData.ingPtID
<3yrs.
Query#1 (qrySeen2008) has:
ingPtID
LastOfdtmVisitDate
I need to find out of these people who has a duration <3yrs. I need to use
strDoFrstSx from tPtData to do so.
So I made another query using ingPtID from qrySeen2008 and added
strDoFrstSx. I know I could just add a "Between" statement but I was
wondering if there is a way other than adding "Between 01/01/2005 and
12/31/2008". I made this in Design view but the SQL statement is below.
SELECT qrySeen2008_Last_Visit.ingPtID, tPtData.strDoFrstSx
FROM qrySeen2008_Last_Visit INNER JOIN tPtData ON
qrySeen2008_Last_Visit.ingPtID = tPtData.ingPtID