when you run the query, you will get something like this --
mtge1 pool1
mtge1 pool2
mtge1 pool3
mtge2 pool1
mtge2 pool2
could you please explain what you want by removing duplicates
do you want this (one pool per mortgage) --
mtge1 pool3
mtge2 pool2
or do you want this (suppress mtge number on 2nd and subsequent rows) --
mtge1 pool1
------- pool2
------- pool3
mtge2 pool1
------- pool2
if it's the first, please indicate which pool you want to select for each mortage
if it's the second, do
not attempt to do this with sql, do it in your calling program
rudy
http://r937.com/