Hola como estan,
Es posible optimizar la siguiente consulta:
select '3ARR' as level,
coalesce(dpe_co stod,0),
dpe_productfk,d pe_procode,
dpe_procode2, stamp,dpe_qty,
dpe_qtyrec,dpe_ provfk,
coalesce(dpe_co stol,0) from detpa
where dpe_productfk=5 and
dpe_provfk=5 and
stamp in
(select max(stamp) from detpa b
where dpe_productfk=n prod and
dpe_provfk=npro v)
Uso postgres 7.4.3.
GRacias por anticipado.
--
Sinceramente,
Josué Maldonado.
"La palabra imposible sólo se halla en el diccionario de los necios."
--Napoleón.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to majordomo@postg resql.org)
Es posible optimizar la siguiente consulta:
select '3ARR' as level,
coalesce(dpe_co stod,0),
dpe_productfk,d pe_procode,
dpe_procode2, stamp,dpe_qty,
dpe_qtyrec,dpe_ provfk,
coalesce(dpe_co stol,0) from detpa
where dpe_productfk=5 and
dpe_provfk=5 and
stamp in
(select max(stamp) from detpa b
where dpe_productfk=n prod and
dpe_provfk=npro v)
Uso postgres 7.4.3.
GRacias por anticipado.
--
Sinceramente,
Josué Maldonado.
"La palabra imposible sólo se halla en el diccionario de los necios."
--Napoleón.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to majordomo@postg resql.org)