From: | Josué Maldonado <josue(at)lamundial(dot)hn> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Optmizar query |
Date: | 2004-09-24 19:21:06 |
Message-ID: | 415473A2.5030906@lamundial.hn |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hola como estan,
Es posible optimizar la siguiente consulta:
select '3ARR' as level,
coalesce(dpe_costod,0),
dpe_productfk,dpe_procode,
dpe_procode2, stamp,dpe_qty,
dpe_qtyrec,dpe_provfk,
coalesce(dpe_costol,0) from detpa
where dpe_productfk=5 and
dpe_provfk=5 and
stamp in
(select max(stamp) from detpa b
where dpe_productfk=nprod and
dpe_provfk=nprov)
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-09-24 19:43:36 | Re: LOG: failed to commit transaction_isolation |
Previous Message | Amin Abdulghani | 2004-09-24 18:41:27 | Re: Removed and then missing pg_clog file |