Hi. I would like some advice on where I should accomplish this query, whether to do it in Crystal, or within SQL Server.
This is what I got:
I have a table where one field is a person identifier. The person can have multiple records, because there are multiple dates, and multiple reasons.
But he can appear only once per date, per reason.
What I would like to do is have a report broke down by date and "reasons". I would like to have date groups, then reason groups, and each persons record within.
But I would like to omit everyone who has more than one reason, and make a group that is "multiple reasons."
My problem is this: I have made a view in SQL Server where I can get all the people who have multiple reasons. But I cannot display the date in the view, because it will group by the date as well, not just by the person.
So, if I omit everyone in the Crystal report that has more than one reason, it will omit pretty much everyone because that view covers all dates. I would only like to omit people who have more than one reason for each date.
Thanks in advance for any suggestions.
This is what I got:
I have a table where one field is a person identifier. The person can have multiple records, because there are multiple dates, and multiple reasons.
But he can appear only once per date, per reason.
What I would like to do is have a report broke down by date and "reasons". I would like to have date groups, then reason groups, and each persons record within.
But I would like to omit everyone who has more than one reason, and make a group that is "multiple reasons."
My problem is this: I have made a view in SQL Server where I can get all the people who have multiple reasons. But I cannot display the date in the view, because it will group by the date as well, not just by the person.
So, if I omit everyone in the Crystal report that has more than one reason, it will omit pretty much everyone because that view covers all dates. I would only like to omit people who have more than one reason for each date.
Thanks in advance for any suggestions.