J
Joe H
Hello, Would appreciate anyone's ideas on this problem:
I have a crosstab query running on daily data where I need
each day of the week (Stretching out 6 months) to get a
column heading. Since I am using parameters to filter-out
certain individuals and am run multiple queries on the
same recordset, I do not always get a crosstab result that
includes all days during that six month period (e.g. based
on the parameters passed a number of the weekend days are
not always present). However, I need all days of the week
to be included in the crosstab irregardless of the
parameters passed. In essence, I need the columns for the
days without data to still show up on the crosstab
result. I've tried appended extra data into the recordset
to be queried. However, it is already quite large and
added the extra data just make it larger and the
performance in that scenario is not acceptable. Is
there a way to pass a query/table that includes all days
during the period to the Pivot statement of the SQL code?
I have a crosstab query running on daily data where I need
each day of the week (Stretching out 6 months) to get a
column heading. Since I am using parameters to filter-out
certain individuals and am run multiple queries on the
same recordset, I do not always get a crosstab result that
includes all days during that six month period (e.g. based
on the parameters passed a number of the weekend days are
not always present). However, I need all days of the week
to be included in the crosstab irregardless of the
parameters passed. In essence, I need the columns for the
days without data to still show up on the crosstab
result. I've tried appended extra data into the recordset
to be queried. However, it is already quite large and
added the extra data just make it larger and the
performance in that scenario is not acceptable. Is
there a way to pass a query/table that includes all days
during the period to the Pivot statement of the SQL code?