Hi everyone,
I am using CR 10 and SQL Server 2000. The report is based on a view and one table joined on on complaintid. When I added the date parameter for range (start and end date), all the rows are repeated 3,4 or 5 times.
Here are the details of my SQL:
SELECT "cr_activeemployee"."complainant", "cr_activeemployee"."caseid", "cr_activeemployee"."office", "cr_activeemployee"."formal_filed", "cr_activeemployee"."written_note", "cr_activeemployee"."fad", "cr_activeemployee"."investigation_requested", "cr_activeemployee"."roi_issued", "cr_activeemployee"."hearing_requested", "cr_activeemployee"."hearing_End", "cr_activeemployee"."mixedcase", "cr_activeemployee"."remanddate", "cr_activeemployee"."filesentdate", "cr_activeemployee"."eeodecdate", "cr_activeemployee"."fadreqdate", "cr_activeemployee"."acceptance", "cr_activeemployee"."dismissal"
FROM "icomp_2911_usda"."dbo"."cr_activeemployee" "cr_activeemployee"
ORDER BY "cr_activeemployee"."office"
SELECT "complaintevents"."startdate", "complaintevents"."complaintid"
FROM "icomp_2911_usda"."dbo"."complaintevents" "complaintevents"
WHERE ("complaintevents"."startdate">={ts '1999-05-13 00:00:00'} AND "complaintevents"."startdate"<{ts '2005-05-14 00:00:00'})
My parameter is of type date and here is my record selection:
(not isnull({cr_activeemployee.formal_filed}))
and
(isnull({cr_activeemployee.fad}))
and
({complaintevents.startdate} in {?Start Date} to {?End Date})
Any ideas why this is happening?
I am using CR 10 and SQL Server 2000. The report is based on a view and one table joined on on complaintid. When I added the date parameter for range (start and end date), all the rows are repeated 3,4 or 5 times.
Here are the details of my SQL:
SELECT "cr_activeemployee"."complainant", "cr_activeemployee"."caseid", "cr_activeemployee"."office", "cr_activeemployee"."formal_filed", "cr_activeemployee"."written_note", "cr_activeemployee"."fad", "cr_activeemployee"."investigation_requested", "cr_activeemployee"."roi_issued", "cr_activeemployee"."hearing_requested", "cr_activeemployee"."hearing_End", "cr_activeemployee"."mixedcase", "cr_activeemployee"."remanddate", "cr_activeemployee"."filesentdate", "cr_activeemployee"."eeodecdate", "cr_activeemployee"."fadreqdate", "cr_activeemployee"."acceptance", "cr_activeemployee"."dismissal"
FROM "icomp_2911_usda"."dbo"."cr_activeemployee" "cr_activeemployee"
ORDER BY "cr_activeemployee"."office"
SELECT "complaintevents"."startdate", "complaintevents"."complaintid"
FROM "icomp_2911_usda"."dbo"."complaintevents" "complaintevents"
WHERE ("complaintevents"."startdate">={ts '1999-05-13 00:00:00'} AND "complaintevents"."startdate"<{ts '2005-05-14 00:00:00'})
My parameter is of type date and here is my record selection:
(not isnull({cr_activeemployee.formal_filed}))
and
(isnull({cr_activeemployee.fad}))
and
({complaintevents.startdate} in {?Start Date} to {?End Date})
Any ideas why this is happening?