I have a report in which i have set the "Preserve all final pass result" in the VLDB properties of the report.The SQL is as below:
select distinct a12.BAN BAN,
a12.MED_BILL_NAME MED_BILL_NAME,
a13.ACCT_STATUS ACCT_STATUS,
a14.ACCOUNT_STATUS ACCOUNT_STATUS
from ODS_BILL_MEDIA a12
left outer join ODS_ACCOUNT_STATUS a13
on (a12.BAN = a13.ACCOUNT_NUM_BAN)
left outer join ODS_REF_ACCOUNT_STATUS_CODE a14
on (a13.ACCT_STATUS = a14.ACCTSTATCD)
The SQL i am expecting is as follows:
select distinct a12.BAN BAN,
a12.MED_BILL_NAME MED_BILL_NAME,
a13.ACCT_STATUS ACCT_STATUS,
a14.ACCOUNT_STATUS ACCOUNT_STATUS
from ODS_BILL_MEDIA a12
join ODS_ACCOUNT_STATUS a13 ***No left outer Join***
on (a12.BAN = a13.ACCOUNT_NUM_BAN)
left outer join ODS_REF_ACCOUNT_STATUS_CODE a14
on (a13.ACCT_STATUS = a14.ACCTSTATCD)
I need left out join for only one join not for both.Is it possible to get it?
Thank You
select distinct a12.BAN BAN,
a12.MED_BILL_NAME MED_BILL_NAME,
a13.ACCT_STATUS ACCT_STATUS,
a14.ACCOUNT_STATUS ACCOUNT_STATUS
from ODS_BILL_MEDIA a12
left outer join ODS_ACCOUNT_STATUS a13
on (a12.BAN = a13.ACCOUNT_NUM_BAN)
left outer join ODS_REF_ACCOUNT_STATUS_CODE a14
on (a13.ACCT_STATUS = a14.ACCTSTATCD)
The SQL i am expecting is as follows:
select distinct a12.BAN BAN,
a12.MED_BILL_NAME MED_BILL_NAME,
a13.ACCT_STATUS ACCT_STATUS,
a14.ACCOUNT_STATUS ACCOUNT_STATUS
from ODS_BILL_MEDIA a12
join ODS_ACCOUNT_STATUS a13 ***No left outer Join***
on (a12.BAN = a13.ACCOUNT_NUM_BAN)
left outer join ODS_REF_ACCOUNT_STATUS_CODE a14
on (a13.ACCT_STATUS = a14.ACCTSTATCD)
I need left out join for only one join not for both.Is it possible to get it?
Thank You