dasari16 Posted April 8, 2013 Share Posted April 8, 2013 HiHere 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 queryselect count(distinct CASE WHEN activity.activity LIKE '%: Phone Appt. Set' THEN p.cid END) as phone_appt_setfrom activity,people p ,dbo.job_prof jp, jobs j,profilestatuswhere activity.reference = $P{jobTitle} and jp.profilestatus_id=profilestatus.profilestatus_id and activity.cid = p.cidand jp.reference = j.reference and p.cid = jp.cid and activity.deleteflag = 0 and jp.DeleteFlag = 0 and p.DeleteFlag = 0and j.DeleteFlag = 0please 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 More sharing options...
Anuj Dudhakawale Posted April 10, 2013 Share Posted April 10, 2013 Please give the information about output that you want from your query, and also give information about your table structure and columns. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now