RATE THIS ANSWER
0
Click to Vote:
0
0
#2 would work except that the clause
"SELECT b.MCUSR6
FROM CASCNTRM b
WHERE a.Pcpoln = b.mccntr"
change the inner select to distinct
try "SELECT distinct b.MCUSR6
FROM CASCNTRM b
WHERE a.Pcpoln = b.mccntr"
this would work if the mulitple values returned are the same
Find the problem
Select count(*), PCPOLN, MCCNTR
from (select distinct PCPOLN from NBSPCNTR)
join CaSCNTRM on PCPOLN = MCCNTR
group by PCPOLN, MCCNTR
having count(*) > 1
You will have to check out the values of MCUSR6 in any > 1 to see if they match - these would be solved with the distinct. But you will have to determne what to do with the matches that bring different values from MCUSR6
Phil
Last Answered:
Aug 6 2009 8:41 PM GMT by Philpl1jb 
24540 pts.