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

Can we call future method from queueable?

597


What are the two authentication modes in sql server?

615


How to call stored procedure using http soap?

531


What is the purpose of the model database?

607


What does Master database contains?

639






what are defaults? Is there a column to which a default can't be bound? : Sql server database administration

626


How can you fetch alternate records from a table?

555


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

681


can a database be shrunk with users active? : Sql server administration

576


What is the use of floor function in sql server?

565


Can a table be moved to different filegroup?

580


What do you understand by SQL*Net?

623


Explain the functionalities that views support?

701


How to find tables without indexes?

636


How fixed length strings are truncated and padded?

563