Skip to content
Advertisement

How to SORT in order as entered in SQL Server?

I’m using SQL Server and I’m trying to find results but I would like to get the results in the same order as I had input the conditions.

My code:

Advertisement

Answer

Here is an in-line approach

Example

EDIT – the subquery Returns

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement