Teradata SQL Optimization : NOT IN ( List ) , Col <> and IN LIST Optimization

戏子无情 提交于 2019-12-13 00:55:49

问题


I have queuries with a LOT of these situations

Sel TB1.C1
TB2.C2,
TB3.C4
Tb5.C5
where < Join conditions involving all tables TB1 through TB4 . 
Most are inner some are LOJ > 
where TB2.C2 NOT In ( List ) 
   OR TB3.C5 <> 'string' 
   OR Tb5.C8 NOT IN ( another long list )

Is there a better way to rewrite the filter conditions

NOT IN ( List ) , Col <> and IN LIST Optimization some of the cols are selected some are not which are there in the sel Vs the filter condition.

来源:https://stackoverflow.com/questions/33004757/teradata-sql-optimization-not-in-list-col-and-in-list-optimization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!