Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. select t.COLUMN_002
  2. from (select t.COLUMN_002
  3. from TABLE_001 t
  4. order by t.COLUMN_002
  5. ) t
  6. where rownum = 1;
  7.  
  8. select t.COLUMN_002
  9. from (select t.COLUMN_002
  10. from TABLE_001 t
  11. order by (case when substr(t.COLUMN_002) between '0' and '9' then 1 else 2 end),
  12. t.COLUMN_002
  13. ) t
  14. where rownum = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement