Re: [pgsql-es-ayuda] query con count

2014-06-05 Por tema FRANCISCO JOSE PALAO VILLANUEVA
uot;[email protected]" Enviado: Jueves 5 de junio de 2014 19:02 Asunto: Re: [pgsql-es-ayuda] query con count FRANCISCO JOSE PALAO VILLANUEVA escribió: > Hola, > tengo una query de la siguiente manera: > > Select t1.pd_id,count(t2.pc_id) as truta,t2.pr_id from p_d t

Re: [pgsql-es-ayuda] query con count

2014-06-05 Por tema Alvaro Herrera
FRANCISCO JOSE PALAO VILLANUEVA escribió: > Hola, > tengo una query de la siguiente manera: > > Select t1.pd_id,count(t2.pc_id) as truta,t2.pr_id from p_d t1 left outer join > p_c t2 on t1.pd_id=t2.pd_id where (t1.pov_id = 805 or t1.pd_zona='2' or > t1.pd_zona='3' or t1.pd_zona='7') and t2.pbv_i

[pgsql-es-ayuda] query con count

2014-06-05 Por tema FRANCISCO JOSE PALAO VILLANUEVA
Hola, tengo una query de la siguiente manera: Select t1.pd_id,count(t2.pc_id) as truta,t2.pr_id from p_d t1 left outer join p_c t2 on t1.pd_id=t2.pd_id where (t1.pov_id = 805 or t1.pd_zona='2' or t1.pd_zona='3' or t1.pd_zona='7') and t2.pbv_id = 805 and t2.pc_tipocli = 1 and t2.pr_id < 11 and t