select top 5 * from emp order by newid()

my question is , how this query get executed?

Answer Posted / ankita bosamiya

first of all order by clause will be executed that is first
it will be arranged as ascending or descending order and
than first 5 records will be fatched.....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what's the maximum size of a row? : Sql server database administration

537


How do I completely remove sql server instance?

556


Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

562


what are the different types of replication you can set up in sql server? : Sql server database administration

506


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

662






What is dimension table? : sql server analysis services, ssas

555


What are the lambda triggers?

478


Explain sql server authentication modes?

599


what do you understand by change data capture?

549


What are the system database in sql server 2005?

545


Explain table valued parameters in sql server? Why tvp used?

549


What stored by the master? : sql server database administration

571


Is sql server 2016 free?

525


How to connect php with different port numbers?

546


How to use wildcard characters in like operations in ms sql server?

588