COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: nandamuri on 01 May 2024 02:18:17 PM

Title: Multi select prompt question
Post by: nandamuri on 01 May 2024 02:18:17 PM
Hello All:

I have a multi select prompt and I can use that parameter in the query with IN clause..

I know that IN clause is multiple OR stmts.

Can we make it as multiple AND stmts.

Title: Re: Multi select prompt question
Post by: dougp on 02 May 2024 09:55:05 AM
I'm guessing that there's a reason that's not an option.  It won't work.

Consider TableA:

idval
1a
2b
3c

select *
from TableA
where val = 'c'
  and val = 'b'

would return 0 rows.