About 50 results
Open links in new tab
  1. sorting - SQL multiple column ordering - Stack Overflow

    Jan 12, 2010 · How can I sort multiple columns in SQL and in different directions? For instance, 'column1' would be sorted descendingly and 'column2' ascendingly.

  2. sql - How to order by column A and then by column B ... - Stack Overflow

    Jan 15, 2022 · Each sort expression may be optionally followed by a COLLATE keyword and the name of a collating function used for ordering text and/or keywords ASC or DESC to specify the sort order.

  3. sql - TSQL - Is it possible to define the sort order? - Stack Overflow

    Jun 2, 2017 · Is it possible to define a sort order for the returned results? I would like the sort order to be 'orange' 'apple' 'strawberry' not ascending or descending. I know ORDER BY can do ASC or DESC …

  4. sql - How do I sort by a specific order - Stack Overflow

    Jan 3, 2012 · It is just a coincidence, the idea is to sort based on the ID only. This can be for several reasons. For example user-specified order, ordered by another resultset on another layer in the …

  5. SQL for ordering by number - 1,2,3,4 etc instead of 1,10,11,12

    2 I assume your column type is STRING (CHAR, VARCHAR, etc) and sorting procedure is sorting it as a string. What you need to do is to convert value into numeric value. How to do it will depend on SQL …

  6. sql - How to sort values in columns and update table? - Stack Overflow

    SELECT * FROM games ORDER BY name ASC But how can I sort the values of id column and save changes in table? Please, help.

  7. Custom Sorting in SQL order by clause? - Stack Overflow

    Oct 8, 2015 · SELECT NAME, SOME_OTHER_FIELDS FROM TABLE ORDER BY NAME I know I can code a sort function to do what I want, but because of how I am using the results, I can't seem to use …

  8. sql - Case expression for Order By clause with Desc/Asc sort - Stack ...

    Case expression for Order By clause with Desc/Asc sort Asked 11 years, 2 months ago Modified 11 months ago Viewed 46k times

  9. How can I specify sql sort order in sql query - Stack Overflow

    I have the follow SQL query statement: SELECT subject, sender_list, date, uid FROM messages WHERE folder_id = 3 Can you please tell how can I specify query sort order? Thank you.

  10. sql - How to force sort order of records based on multiple columns ...

    Nov 1, 2024 · How to force sort order of records based on multiple columns Asked 1 year, 1 month ago Modified 1 year, 1 month ago Viewed 119 times