I am having problems with what I think should be an easy query...can someone offer advice please?
I have a database logging faults in numerous markets of our operation. Details of each fault includes the date and a yes/no field for each market indicating if it was affected by the fault. By the nature of our operation a fault may affect more than one market.
What I need to do is generate weekly and monthly reports on the number of faults affecting each market on a daily basis, ie sum the total of 'yes' fields for each market on each day.
I can happily run a query to sum just one market....but try to add other markets and it falls apart.I think this is because not every market has a fault every day. There may be days where there are no faults at all (we like that kind of day
)
Could anyone post ideas on how to build this query ??
I have a database logging faults in numerous markets of our operation. Details of each fault includes the date and a yes/no field for each market indicating if it was affected by the fault. By the nature of our operation a fault may affect more than one market.
What I need to do is generate weekly and monthly reports on the number of faults affecting each market on a daily basis, ie sum the total of 'yes' fields for each market on each day.
I can happily run a query to sum just one market....but try to add other markets and it falls apart.I think this is because not every market has a fault every day. There may be days where there are no faults at all (we like that kind of day

Could anyone post ideas on how to build this query ??
Last edited: