Microsoft
Software
Hardware
Network
Question : SQL Substr Order
I have a select statement that uses substr
select distinct substr(value, 1, 1) from table
This query returns letters (i.,e, H, O, B, D).
I need those letters to be sorted alphabetically (B, D, H, O).
How can I do this with this query. I tried adding "sort by value" and "order by value". I got an SQL error for both.
Using Oracle 10g.
Answer : SQL Substr Order
select distinct substr(value, 1, 1) from table
order by 1;
or give it an alias
select distinct substr(value, 1, 1) letter from table
order by letter;
Random Solutions
Memory Advanced ECC Mode with Mixed DIMM Capacities on Dell R710 PowerEdge
InDesign CS3: Select a specific text frame
Getting own send e-mail in Blackberry
How to design my DNS structure
Opera 10.x how to find each tab's memory consumption
What is the proper DNS settings for ...
Move Mailbox Powershell Script (sending Welcome e-mail HTML format)
Custom Search Page and Impersonation
Routing Issues
My CPU is running at 48C to 51C