Thanks Winner. I had gone thru the SQL documentation and prepared the following query.
SELECT FM.FMID, FM.ACCT_NBR, FM.OFF_NBR, FM.RR_NBR, FM.RELATED_PARTY, FM.ACCT_CATEGORY, TA.TARGET_ID
FROM FIELD_MEMBER_ACCT_RELATION FM LEFT JOIN TARET_MASTER ON FM.ACCT_NBR= TM.ACCT_NBR AND FM.ACCT_CATEGORY=3
FIELD_MEMBER_ACCT_RELATION contains 2Million records while as TARGET contains 800,000 records. I need your suggestion about the approach.
1****n this sql in production for each request
2.Create a summary table and access this information from summary table.
Thanks
Shri