Skip to content
Advertisement

Tag: alphabetical

SQL non alphabetical order in WHERE IN

Let’s say I have this query: the result is: which is ordered by the alphabetical order How can I get a result order by the index of appearance in the list? basically I want this as a result: Answer This is quite a popular approach to sort things in SQL, so I’ve blogged about this example here. You would have

Advertisement