One More Query:SELECT T1.Rowid,T1.ResellerCustomerName,T1.ResellerAccountNo,T1.EndUserCustNo,T1.EndUserCustName,T1.EndUserContactName,T1.EndUserContactEmail,T1.OrderPONo,T1.OrderPODate,T1.OrderNumber,T1.OrderDate,T1.SVCNumber,T1.SVCDescription,T1.OrderQuantity,T3.ContactIdFROM TempView T1,Reseller T2,CustomerDetail T3 WHERE T1.RevenueType = 'Maintenance' and T1.ResellerAccountNo = T2.ResellerAccountNo and T2.ResellerAccountNo = T3.ResellerAccountNumber and T1.EndUserContactName = T3.ContactFirstName order by rowid
other better way to write this query?Due to client confidential issues I'm not in a position to post sample data here..Karunakaran