Cita:
Empezado por Casimiro Notevi
Vale, muy bonito
Pregunto por los valores que le pasas y los valores que tiene la tabla.
Ejemplo:
:ParCOD_REMI = 5
:ParCODIGO = 23
Y en la tabla están los siguientes registros:
Código:
COD_REMI, CODIGO, PRECIO_UNIT, TOTAL, SERVICIO, CANTIDAD
1 1 112 22 xx 33
2 4 34 16 yyy 64
3 6 76 41 zz 28
|
ah disculpen, entendi mal tienen estos registros:
:ParCOD_REMI = 1
:ParCODIGO = 1
Código SQL
[-]
COD_REMI, CODIGO, PRECIO_UNIT, TOTAL, SERVICIO, CANTIDAD
1 1 8000 16000 Mantenimiento 2
2 1 8000 8000 Mantenimiento 1
3 1 8000 8000 Manteniemitno 1
1 2 4500 9000 Lineacion 1
1 3 16800 16800 Balanceo 1
1 4 18000 18000 Recarga Negro 1