on 07-25-2014 5:24 PM
000
000
001
000
002
003
Cuando hago: SORT 'table_name' BY SOLNR ASCENDING.
Obtengo esto:
SOLNR
000
000
001
002
003
Pero necesito esto:
001
002
003
000
000
Por favor alguien que me ayude
Gracias
Hola Sergio, gusto en saludarte.
Imagino que lo que estas usando no es SQL, por la sintaxis que ocupas.
Desconozco el lenguaje que estas utilizando, pero por el nombre del campo, creo que estas trabajando sobre R/3 y no sobre Business One:
Si fuese SQL, lo que haria es transformar la columna mediante un CASE y luego ordenar por esta columna transformada.
La sintaxis de esto seria algo como:
SELECT CASE WHEN SOLNR='000' THEN '999' ELSE SOLNR END [Ordernar]
, SOLNR
FROM <TABLA>
ORDER BY Ordenar
slds.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.