Subject | Re: [firebird-support] Order by |
---|---|
Author | Walter R. Ojeda Valiente |
Post date | 2015-10-07T00:02:20Z |
Germán, as you can read Spanish, this article can be useful:
Greetings.
Walter.
On Tue, Oct 6, 2015 at 6:17 PM, Germán Balbi balger@... [firebird-support] <firebird-support@yahoogroups.com> wrote:Excellent, very simple. Thank KarolEl 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 .. ENDregards,Karol BieniaszewskiHello everyoneThere is the possibility of ordering the result of a SELECT in an order specified by the user.For examplehaving a field NAMEin the clause ORDER BY 'PAUL, JOHN, PETER, MARIA'Of course, that should be all the options setThank you.Hola a todosExiste la posibilidad de ordenar el resultado de un SELECT en un order especificado por el usuario.Por ejemploteniendo un campo NOMBREen la clausula ORDER BY 'PABLO, JUAN, PEDRO, MARIA'Claro esta, que se deben tener todas las opciones establecidasgracias.