K
kalensk
I inherited this database. Each ID may or may not have errors. I need
to find the Total Errors/ID for each month. Each ID is unique
There are two tables as follows:
tbl1 contains ID and Date
tbl2 contains ID and Errors
If I display tbl1.ID it will show all ID's logged into the database:
ID1 Date
ID2 Date
ID3 Date
If I show tbl2.ID it will show repeated IDs for each error. Such as:
ID1 Date Error
ID1 Date Error
ID1 Date Error
ID3 Date Error
Therefore:
ID1 had 3 errors
ID2 had 0 errors
ID3 had 1 error
Is there an easy way to count the number of errors per month over each
ID (each ID is unique), and count the number of IDs logged into the
database in order to find the percentage of Errors/ID for each month
given a start and end date.
to find the Total Errors/ID for each month. Each ID is unique
There are two tables as follows:
tbl1 contains ID and Date
tbl2 contains ID and Errors
If I display tbl1.ID it will show all ID's logged into the database:
ID1 Date
ID2 Date
ID3 Date
If I show tbl2.ID it will show repeated IDs for each error. Such as:
ID1 Date Error
ID1 Date Error
ID1 Date Error
ID3 Date Error
Therefore:
ID1 had 3 errors
ID2 had 0 errors
ID3 had 1 error
Is there an easy way to count the number of errors per month over each
ID (each ID is unique), and count the number of IDs logged into the
database in order to find the percentage of Errors/ID for each month
given a start and end date.