I'm have a question. When I execute the following script I get too many records. In the F887rpt table there is only 20,000 records. However when I run the script below 20,100 are selected. I was only expecting to get 20,000 records. Can someone please tell me why I am getting more than 20,000 records and how to stop it?
SELECT C.*
FROM f887rpt F, nodup c
WHERE F.XORGN||F.SATSTN||F.BEGBUDFY||F.ENDBUDFY||F.FUND||F.XPROG||MONAMT||F.COSTORG||F.BOC||F.SUBOC||F.XDIVSN =
C.STATION||C.SAT_STN||C.BFY||C.EBFY||C.FUND||C.ACC||C.CMOBLIG||C.CC||C.BOC||C.SUBBOC||C.AO
and f.xprog = '010070301'
ORDER BY C.STATION, C.BFY, C.EBFY, C.FUND, C.ACC, C.CC,C.BOC,C.SUBBOC
/
SELECT C.*
FROM f887rpt F, nodup c
WHERE F.XORGN||F.SATSTN||F.BEGBUDFY||F.ENDBUDFY||F.FUND||F.XPROG||MONAMT||F.COSTORG||F.BOC||F.SUBOC||F.XDIVSN =
C.STATION||C.SAT_STN||C.BFY||C.EBFY||C.FUND||C.ACC||C.CMOBLIG||C.CC||C.BOC||C.SUBBOC||C.AO
and f.xprog = '010070301'
ORDER BY C.STATION, C.BFY, C.EBFY, C.FUND, C.ACC, C.CC,C.BOC,C.SUBBOC
/