Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2008, 11:48
mayte85
 
Fecha de Ingreso: abril-2008
Mensajes: 82
Antigüedad: 16 años
Puntos: 0
Re: Ayuda con postgresql

Gracias por responder afortunadamente lo pude solucionar les dejo un pequeño ejemplo por si alguien tiene el mismo problema.



SELECT DISTINCT TABLA.CAMPO1 as C1,
(SELECT SUM(campocantidad) FROM tabla LEFT JOIN tablaunirL ON tabla.campofk=tablaunir.campoid wHERE (condicion) ) as productoa,