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  

enter image description here

second table "pr" has 28.000.000 rows , query progressing 2 minutes. how can optimize query.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -