Reputation: 4385
I have a column that contains text in my Access database.
Is there a way to sort this column by the length of the strings in it (without having to write lots of code)? Showing longest strings first, for example.
Thanks.
Upvotes: 3
Views: 4594
Reputation: 36451
SELECT StringColumn, len(StringColumn) AS Length
FROM YourTable
ORDER BY len(StringColumn) DESC
Upvotes: 5