Hi,
I'm working on Environment where we have connection to the database from sas server.We are using EG 4.2 to access those database files.
I'm running below query,it is running since 40 min.I have million records to process.
select fs.sender_name "Specialty Pharmacy",
pat.drc_case_id "DRC CASE ID",
ship.most_recent_ship_date "Milestone_Date",
ship.ndc_nbr "Product",
'Ship' as "Milestone_Type"
bi.num_of_days_supplied "Days of Therapy"
from cld_account_cooked acct,
cld_benefit_cooked bi,
received_files rf,
cload.file_senders fs,
cld_patient_cooked pat
left join cld_detail_cooked ship on ship.cld_patient_cooked_id = pat.cld_patient_cooked_id
where rf.file_date_of_report >= '01-Jan-2010'
and fs.sender_name = 'SDI CuraScript'
and rf.received_file_id = pat.received_file_id
and acct.cld_account_cooked_id = pat.cld_account_cooked_id
and bi.cld_patient_cooked_id = pat.cld_patient_cooked_id
and fs.file_sender_id = rf.file_sender_id)
Could somebody suggest me what i can do to improve performance.
Thanks,
brm.
... View more