is this what your after...?
select x.*
from consent_properties as x
where Exists
(select streetaddress
from CONSENTS con
, adults adl
, CONSENT_PROPERTIES conprop
, property_ids pids
, fx_Sum_Addresses() adr
where pids_year = '2004'
and con_ADULT_seq = adults_seq
and con_seq = conprop_con_seq
and conprop_pids_seq = pids_seq
and pids_adr_seq = adr_seq
Where x.streetaddress=conprop.st
group by streetaddress
having count(con_consentid) > 1)
otherwise please explain what its attempting to do..
Main Topics
Browse All Topics





by: SjoerdVerweijPosted on 2004-07-21 at 12:17:26ID: 11606009
What exactly are you trying to do?