a query with = ALL - Mailing list pgsql-sql

From Jaime Casanova
Subject a query with = ALL
Date
Msg-id BAY8-F81FaO0dlJMm530007a405@hotmail.com
Whole thread Raw
Responses Re: a query with = ALL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi all,

some more info a think can be useful to probe there is somting wrong.

I pointed that the query

select cur_paralelo from rec_m_cuadropagos WHERE ent_codigo = 1 AND
                  
 
sec_codigo = 1 AND                                                                        
ani_codigo = '2004-2005' AND                                                                        
cic_codigo = 1 AND                                                                        
esp_codigo = 0 AND                                                                        
cur_codigo = 1
intersect
SELECT cur_paralelo FROM aca_t_curso WHERE ent_codigo = 1 AND
            
 
sec_codigo = 1 AND                                                                        
ani_codigo = '2004-2005' AND                                                                        
cic_codigo = 1 AND                                                                        
esp_codigo = 0 AND                                                                        
cur_codigo = 1

brings 'A ', 'B ', 'C ' well when i cHange the real query

SELECT CPA.rub_codigo, RUB.rub_descripcion, CPA.cpa_valor, 
CPA.cpa_fechavencimiento
FROM rec_m_cuadropagos CPA, rec_m_rubro RUB
WHERE RUB.ent_codigo = CPA.ent_codigo AND RUB.rub_codigo = CPA.rub_codigo 
AND     CPA.ent_codigo = 1 AND CPA.sec_codigo = 1 AND CPA.ani_codigo = 
'2004-2005' AND     CPA.cic_codigo = 1 AND CPA.esp_codigo = 0 AND CPA.cur_codigo = 1 AND     CPA.cur_paralelo = 'A '

then it brings the result that it would but when i do the same with =ALL it 
doesn't work

thanx in advance,

Jaime Casanova

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



pgsql-sql by date:

Previous
From: "Jaime Casanova"
Date:
Subject: query with =ALL
Next
From: "Alexander M. Pravking"
Date:
Subject: Re: RES: Datetime problem