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
Unable to install any framework .NET in XP Mode (Virtual PC)
Windows 7 WGA says my legitimate copy is NOT GENUINE
Motorola MC50 Activesync Problem
Word 2007 - Table gridline - Need to make visible
SubReport pushes text and controls of Main Access report
Anyone knows what this fruit is called in english and if I can buy it in the USA somewhere even online
SQL 2k Database restore using only MDF flies
Create an automatic snapshot process and ideally a copy process with ESXI 4.0
Windows 7 screen saver goes crazy "Bubbles"
Enteprise Application Documentation Application