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
asp.net: My problem is, I am using an ajax extender Calendar to enter BeginDate & EndDate values
Is there anyway to reserve some resources in windows server so that RDC will still work in the event network/cpu is exhausted?
Convert web.config from .NET 3.5 to 4.0
security updates for windows 2003 server not downloading
Why does my HP Desktop have power options for being plugged in and not plugged in?
Event ID 1050 MSEx Runtime
Problems installing the AjaxControlTooKit.dll
SBS 2003 server losing computer account
How DNS and domain names work
How do I write a firewall?