because it should be before ORDER BYSELECT TOP 100 PERCENT dbo.tegCustXRef_Temp3.slsman, dbo.custaddr.name, dbo.customer.Uf_collectr, dbo.customer.RowPointerFROM dbo.tegCustXRef_Temp3 INNER JOINdbo.customer ON dbo.tegCustXRef_Temp3.cust_num = dbo.customer.cust_num AND dbo.tegCustXRef_Temp3.Cust_Seq = dbo.customer.cust_seq INNER JOINdbo.custaddr ON dbo.customer.cust_num = dbo.custaddr.cust_num AND dbo.customer.cust_seq = dbo.custaddr.cust_seqWHERE dbo.tegCustXRef_Temp3.slsman BETWEEN '900' AND '999'ORDER BY dbo.tegCustXRef_Temp3.slsman DESC
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/