K
knowshowrosegrows
I am having trouble figuring out how to track dates in my database.
Tables =
tblProgram
Program_ID PK
LOC_ID FK
Contact_ID FK
Agency_ID FK
tblCensusEvent
Census_ID PK
Program_ID FK
CensusDate
Census - Default = 0
Admissions - Default = 0
Discharges - Default = 0
tblAgency
Agency_ID PK
tblContact
Contact_ID PK
tblLOC
LOC_ID PK
I need a query that tells me about the census events for a given census date
for all the programs regardless of whether information was entered or not for
each program. So, if only 3 of 100 programs reported a census on 1/1/01, I
have 97 rows with zeros in the Census, Admission and Discharge fields for
that date.
When I write the queries I have tried, I end up with a report of the 3
records that had data, rather than the 100 records with all the zeros.
Tables =
tblProgram
Program_ID PK
LOC_ID FK
Contact_ID FK
Agency_ID FK
tblCensusEvent
Census_ID PK
Program_ID FK
CensusDate
Census - Default = 0
Admissions - Default = 0
Discharges - Default = 0
tblAgency
Agency_ID PK
tblContact
Contact_ID PK
tblLOC
LOC_ID PK
I need a query that tells me about the census events for a given census date
for all the programs regardless of whether information was entered or not for
each program. So, if only 3 of 100 programs reported a census on 1/1/01, I
have 97 rows with zeros in the Census, Admission and Discharge fields for
that date.
When I write the queries I have tried, I end up with a report of the 3
records that had data, rather than the 100 records with all the zeros.