Hi:
I have read many performance tips about that 'You can quickly get the n rows and can work with them, when the query continues execution and produces its full result set'. Now I am trying to use this by using Option(fast, n)...but it doesn't seem working, Can anyone please look at my query and see if I use it right, if not, where and how I should use it...Thanks alot..
SELECT wp.[Unique ID], wp.[Tool ID],
wp.[Chamber Number], wp.[Chamber ID],
wp.[Lot ID], wp.[Substrate ID],
wp.[Substrate Start Time], wp.[Recipe Lookup ID],
rp.[Sensor Number],rp.[Sensor Type],
rp.[File PathName],rp.[Run Time],
ra.[Analysis When],ra.[Analysis Type],
ra.[Analysis Step],ra.[ReAnal Time],
ra.[ReAnal Recipe File PathName],rad.[Detail Name],
rad.[Detail NumData],rad.[Detail Min],
rad.[Detail Max], rad.[Detail Avg],
rad.[Detail SDev]
FROM [Wafer Parameters] AS wp INNER JOIN
( [Run Parameters] AS rp INNER JOIN
( [Run Analyses] AS ra INNER JOIN
[Run Analysis Detail] AS rad
ON ra.[PK Run Analyses] = rad.[FK Run Analyses])
ON rp.[PK Run Parameters] = ra.[FK Run Parameters])
ON wp.[PK Wafer Parameters] = rp.[FK Wafer Parameters]
WHERE wp.[Substrate Start Time] Between '1/1/1993 0:0:0' and '5/16/2002 17:20:00'
And rad.[Detail Name] = '18 amu'
ORDER BY rad.[Detail Name],
ra.[Analysis Step],
ra.[Analysis Type],
ra.[ReAnal Time],
rp.[Sensor Type],
wp.[Substrate Start Time],
wp.[Lot ID],
wp.[Tool ID],
wp.[Chamber ID]
Option (Fast 10000)