Jump to content
We've recently updated our Privacy Statement, available here ×

how to add case statements in jasper domain


dasari16

Recommended Posts

Hi

Here i am creating a jasper domain. I applied joins accordingly but now i stuck at two places,

1) I dont know how to apply case Statement conditions in domain filters. Here is my sample query

select count(distinct CASE WHEN activity.activity LIKE '%: Phone Appt. Set' THEN p.cid END) as phone_appt_set
from activity,people p ,dbo.job_prof jp, jobs j,profilestatus
where activity.reference = $P{jobTitle} and jp.profilestatus_id=profilestatus.profilestatus_id and activity.cid = p.cid
and jp.reference = j.reference and p.cid = jp.cid and activity.deleteflag = 0 and jp.DeleteFlag = 0 and p.DeleteFlag = 0
and j.DeleteFlag = 0

please help me how (Syntax) to write case statements and where it write i am confused to add filters or to write it in calculated fields?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...