adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the Ticketing tool used in Wipro technologies at Bangalore...???

8231


How can we solve concurrency problems?

1123


What are the different types of subquery?

1235


What are the different SQL Server Versions you have worked on?

1080


What is a coalesce function?

1285


What is the primary use of the model database?

1151


What kind of problems occurs if we do not implement proper locking strategy?

1500


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2296


What is in place upgrade in sql server?

1127


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1048


How to convert character strings into numeric values?

1191


List the ways in which dynamic sql can be executed?

1087


What is normalization and what are the advantages of it?

1057


What are wait types?

1250


Can you index views?

955