| Subject | Re: [firebird-support] Order by | 
|---|---|
| Author | Germán Balbi | 
| Post date | 2015-10-06T22:17:29Z | 
Excellent, very simple. Thank Karol
  
   
 
 
  
    
      
      
      
 
 
 
 
  
 
 
 
 
 
    
     
    
    
     
  El Martes, 6 de octubre, 2015 16:32:08, "liviuslivius@... [firebird-support]" <firebird-support@yahoogroups.com> escribió:
  
  Hi,
ORDER BY CASE USER_NAME WHEN ‘PAUL’ THEN 1 WHEN ‘JOHN’ THEN 2 .. END
regards,
Karol Bieniaszewski
Hello 
everyone
There is the possibility of ordering the result of a SELECT in an order specified by the user.
For example
having a field 
NAME
in the clause ORDER BY 'PAUL, JOHN, PETER, MARIA'
Of 
course, that should be all the options set
Thank you.
Hola a todos
Existe la posibilidad de ordenar 
el resultado de un SELECT en un order especificado por el usuario.
Por ejemplo
teniendo un campo NOMBRE
en la clausula ORDER BY 'PABLO, 
JUAN, PEDRO, MARIA'
Claro esta, que se deben tener 
todas las opciones establecidas
gracias.