hootlehead
Technical User
I am trying to create a report that has multiple default parameters. I have tried creating a command as seen below however it returns all values and not the ones I have specified. I am using Crystal 11. My Table name is CEVENT and my field Name is CEVENT_DESC.
Why is this not working - anyone have any other solutions on how I can have a report have multiple default values and allow a user to add additional values> Please HELP!
SELECT 'PART 1 CRIME' AS CEVENT_DESC FROM CEVENT
UNION
SELECT DESTINCT CEVENT_DESC FROM CEVENT
WHERE (CEVENT_DESC = 'ASSAULT IP') or (CEVENT_DESC = 'ASSAULT JO') or (CEVENT_DESC ='ASSAULT PE') or (CEVENT_DESC ='BURGLARY IP') or (CEVENT_DESC ='BURGLARY JO') or (CEVENT_DESC ='BURGLARY PE') or (CEVENT_DESC ='CDS IP') or (CEVENT_DESC ='CDS JO') or (CEVENT_DESC ='CDS PE') or (CEVENT_DESC ='DOMESTIC IP') or (CEVENT_DESC ='DOMESTIC JO') or (CEVENT_DESC = 'DOMESTIC PE') or (CEVENT_DESC ='DIS,DERLY IP') or (CEVENT_DESC ='DIS,DERLY JO') or (CEVENT_DESC ='DISODERLY PE')or (CEVENT_DESC = 'RAPE') or (CEVENT_DESC ='ROBBERY IP') or (CEVENT_DESC ='ROBBERY PE') or (CEVENT_DESC =' ROBBERY JO') or (CEVENT_DESC ='THEFT IP') or (CEVENT_DESC ='THEFT JO') or (CEVENT_DESC = 'THEFT PE') or (CEVENT_DESC ='TRAFFIC STOP') or (CEVENT_DESC ='VANDALISM JO') or (CEVENT_DESC ='VANDALISM IP') or (CEVENT_DESC ='VANDALISM PE')
Why is this not working - anyone have any other solutions on how I can have a report have multiple default values and allow a user to add additional values> Please HELP!
SELECT 'PART 1 CRIME' AS CEVENT_DESC FROM CEVENT
UNION
SELECT DESTINCT CEVENT_DESC FROM CEVENT
WHERE (CEVENT_DESC = 'ASSAULT IP') or (CEVENT_DESC = 'ASSAULT JO') or (CEVENT_DESC ='ASSAULT PE') or (CEVENT_DESC ='BURGLARY IP') or (CEVENT_DESC ='BURGLARY JO') or (CEVENT_DESC ='BURGLARY PE') or (CEVENT_DESC ='CDS IP') or (CEVENT_DESC ='CDS JO') or (CEVENT_DESC ='CDS PE') or (CEVENT_DESC ='DOMESTIC IP') or (CEVENT_DESC ='DOMESTIC JO') or (CEVENT_DESC = 'DOMESTIC PE') or (CEVENT_DESC ='DIS,DERLY IP') or (CEVENT_DESC ='DIS,DERLY JO') or (CEVENT_DESC ='DISODERLY PE')or (CEVENT_DESC = 'RAPE') or (CEVENT_DESC ='ROBBERY IP') or (CEVENT_DESC ='ROBBERY PE') or (CEVENT_DESC =' ROBBERY JO') or (CEVENT_DESC ='THEFT IP') or (CEVENT_DESC ='THEFT JO') or (CEVENT_DESC = 'THEFT PE') or (CEVENT_DESC ='TRAFFIC STOP') or (CEVENT_DESC ='VANDALISM JO') or (CEVENT_DESC ='VANDALISM IP') or (CEVENT_DESC ='VANDALISM PE')