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


Please Help Members By Posting Answers For Below Questions

Explain primary key?

606


Your table has a large character field there are queries that use this field in their search clause what should you do?

560


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

585


What is default port number for sql server 2000?

660


Explain for xml explicit mode?

634






What is database replication? What are the different types of replication you can set up in sql server?

567


Explain a differential backup?

639


Can another user execute your local temporary stored procedures?

601


What the different components of Replication and what is their use?

624


What do you understand by the analysis services in sql server?

603


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

694


What is create statement?

585


What is the current pricing model of SQL Azure?

92


How do I make a resultset scrollable?

589


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

648