If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

in and where clause

Started by mp3909, 11 Feb 2021 12:52:32 PM

Previous topic - Next topic

mp3909

Hi All,

How do I replicate this sql logic in my cognos report?

sql clause --> and a.customerNumber in (select c.customerNumber from c where c.accountNumber=4) ???

I tried adding this in the detail filters of the query:

[a].[customerNumber] in ([c].[customerNumber]) where [c].[accountNumber]=4 but it's complaining.


Any ideas?

Thanks


dougp

How is that different from...
from a
  inner join c on c.customerNumber = a.customerNumber
              and c.accountNumber = 4

...?

Create two queries and join them.