SQL Logic (merged by CM) [message #451388] |
Wed, 14 April 2010 05:39 |
kkmohan1
Messages: 1 Registered: April 2010
|
Junior Member |
|
|
Hi I am trying to implement this logic in my SQL in where condition
( (EDW.V_SEC.CUST_NUMBER = EDW.D_CUSTOMER.CUST_NUMBER OR EDW.V_SEC.CUST_NUMBER='ALL') AND
(EDW.V_SEC.BILL_GROUP = EDW.D_CUSTOMER.BILL_GROUP OR EDW.V_SEC.BILL_GROUP='AL' ) AND
(EDW.V_SEC.DIST_NUMBER = EDW.D_CUSTOMER.DIST_NUMBER OR EDW.V_SEC.DIST_NUMBER='A
but when i am using ORconiditon it taking lot of time for getting data.
EDW.V_SEC is a security table which contains all customer numbers, bill groups, district number.
Please help me in tuning this.
Thanks
Mohan
|
|
|
|