select top 5 * from emp order by newid()
my question is , how this query get executed?
Answer Posted / kb
Random 5 rows are selected when newid() is used.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
how to use DTS package in 2000,2005,2008 in sql server
How to sort the query output with order by clauses in ms sql server?
What stored by the model?
Explain about SQLOS?
How do I partition a table in sql server?
What are the system database in sql server 2005?
what authentication modes does sql server support? : Sql server database administration
How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?
how to create a scrollable cursor with the scroll option? : Sql server database administration
What is difference between aggregate and analytic function?
What is log shipping?
What are the types of normalization?
What is the purpose of linked server configuration in sql server?
What is raid, and how it can influence database performance?
what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration