Hi,
I have two tables:
ACCOUNT
id
amount
CREDIT
id
credit_amount_aaa
credit_amount_bbb
The join is:
SELECT account.id
, account.amount
, credit.credit_amount_aaa
, credit.credit_amount_bbb
FROM account
, credit
WHERE account.id = credit.id(+)
I have id in section a, amount in section b, credit_amount_aaa in section c and credit_amount_bbb in section d of my report. I want to suppress the section c if credit_amount_aaa is 0 or is null. I want to suppress the section d if credit_amount_bbb is 0 or is null.
Here is my suppress logic for section c:
{CREDIT.CREDIT_AMOUNT_AAA} = 0
or
IsNull ({CREDIT.CREDIT_AMOUNT_AAA})
Here is my suppress logic for section d:
{CREDIT.CREDIT_AMOUNT_BBB} = 0
or
IsNull ({CREDIT.CREDIT_AMOUNT_BBB})
Let's say I have this data in my database:
ACCOUNT
xxx 10
CREDIT
no rows
My report displays section a, section b, section c and section d. (It should only display section a and section b.)
Let's say I have this data in my database:
ACCOUNT
xxx 10
CREDIT
xxx 12 <null>
My report displays section a, section b and section c. (This is correct.)
How should I change my suppress logic for section c and section d so it correctly suppresses these two sections when the outer join brings back nothing from the CREDIT table because is isn't a corresponding row in CREDIT?
Thanks in advanced for your help
mnguyen_va@yahoo.com
I have two tables:
ACCOUNT
id
amount
CREDIT
id
credit_amount_aaa
credit_amount_bbb
The join is:
SELECT account.id
, account.amount
, credit.credit_amount_aaa
, credit.credit_amount_bbb
FROM account
, credit
WHERE account.id = credit.id(+)
I have id in section a, amount in section b, credit_amount_aaa in section c and credit_amount_bbb in section d of my report. I want to suppress the section c if credit_amount_aaa is 0 or is null. I want to suppress the section d if credit_amount_bbb is 0 or is null.
Here is my suppress logic for section c:
{CREDIT.CREDIT_AMOUNT_AAA} = 0
or
IsNull ({CREDIT.CREDIT_AMOUNT_AAA})
Here is my suppress logic for section d:
{CREDIT.CREDIT_AMOUNT_BBB} = 0
or
IsNull ({CREDIT.CREDIT_AMOUNT_BBB})
Let's say I have this data in my database:
ACCOUNT
xxx 10
CREDIT
no rows
My report displays section a, section b, section c and section d. (It should only display section a and section b.)
Let's say I have this data in my database:
ACCOUNT
xxx 10
CREDIT
xxx 12 <null>
My report displays section a, section b and section c. (This is correct.)
How should I change my suppress logic for section c and section d so it correctly suppresses these two sections when the outer join brings back nothing from the CREDIT table because is isn't a corresponding row in CREDIT?
Thanks in advanced for your help
mnguyen_va@yahoo.com