sql server - Sql JOIN Performance on Big tables -
i have query following line.
select /**/ #customers fia inner join [fia_cmmn_fin_account] fca with(nolock) on (fca.report_oid=fia.oid , fca.status='1') inner join [fia_cmmn_rpt_parameter] pr with(nolock) on (pr.report_oid =fia.oid , pr.status='1') (fca.original_1+fca.original_2+fca.original_3+fca.original_4)!= 0
second table "pr" has 28.000.000 rows , query progressing 2 minutes. how can optimize query.
Comments
Post a Comment