How to sort the query output with order by clauses in ms sql server?



How to sort the query output with order by clauses in ms sql server?..

Answer / Satendra Kumar Bharti

You can sort the query output using the ORDER BY clause in MS SQL Server. Here's an example:n```sqlnSELECT column1, column2 FROM table_name ORDER BY column1 ASC;```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

what's the difference between a primary key and a unique key? : Sql server database administration

1 Answers  


What are the different authentication modes in sql server? How can it be changed?

1 Answers  


Explain what is it unwise to create wide clustered index keys?

1 Answers  


What is triggers in ms sql server?

1 Answers  


What is the Query of getting last 10 transaction Reports (like insert, update, Delete Data from Tabele) ?

4 Answers   Wipro,


How to provide default values to function parameters?

0 Answers  


How many clustered indexes there can be on table ?

1 Answers  


how to create a scrollable cursor with the scroll option? : Sql server database administration

1 Answers  


How many partitions a clustered index has by default in sql server 2012?

1 Answers  


What is sql view?

1 Answers  


Are semicolons required at the end of sql statements in sql server 2005?

1 Answers  


what is a live lock? : Sql server database administration

1 Answers  


Categories