Subject Re: [firebird-support] Order by
Author
Hi,
 
ORDER BY CASE USER_NAME WHEN ‘PAUL’ THEN 1 WHEN ‘JOHN’ THEN 2 .. END
 
regards,
Karol Bieniaszewski
 
Sent: Tuesday, October 06, 2015 5:20 PM
Subject: [firebird-support] Order by
 
 

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.