SQL server 2008 r2 How does TOP works? -
how top works ?
i have gone through top(transact-sql). understand top used limit result set. have not understood let specified select top(10) table condition stop after processing first 10 records table may contain 5 records match condition or process records first , return first 10 record of result set.
yes, second assumption 1 correct.
first process records , return first 10 record of result set.
database engine run query ignoring the top clause, , @ end shrink result set down n number of rows requested.
Comments
Post a Comment