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
Configuring Wireless Computer Authentication with Certificates in Windows 7
looking for a powerful ActionScript 3 isometric engine
Internal Server Error
howto eliminate duplicates in Exchange .ost file
alignment question
Can we split name in HTML
WDS Server 2008 R2 - PXE Error
laptop setup win 7 64bit with 32bit xp pro emulator
Connect to customer's pc using free utils
adding a mac to sbs 2003 network