sujit_kumar is right: please post the complete code that results in duplicated rows.
maybe you have to change it in this way:
SELECT CLAIM_NUMBER,
Sum(MIGRATE_GRE_OUTSTANDIN
FROM OUTSTANDING
WHERE id IN (
SELECT id
FROM table_b
WHERE table_b.id = outstanding.id)
GROUP BY CLAIM_NUMBER
HAVING CLAIM_NUMBER='123'
Main Topics
Browse All Topics





by: sujit_kumarPosted on 2007-07-10 at 12:52:18ID: 19457134
can you send the output format,and some more details about the table structures.