I'm in the middle of sorting out a very annoying problem. In Oracle, a select statement using IN will parse the query to use indexing where it exists, but SQLServer does full table scans and ignores the indexes. Using UNION in SQLServer for every component of the IN clause performs the same as Oracle. Does anyone haves any smart ideas on rewriting these queries in SQLServer ?