Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

916


What is right outer join in sql server joins?

1158


How to rebuild master databse?

1065


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

135


What does null mean?

970


what are the new features in SSRS?

134


Can group by be used without aggregate functions?

898


What is cdc in sql server?

986


What is wrong with sql server client libarary dll, ntwdblib.dll?

1030


What is the purpose of self join?

955


Explain tables in SQL Azure?

120


How to apply cascading referential integrity in place of triggers?

1020


What is an index in a database?

959


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

940


What is sql stored procedure?

1063