|
|
Archives of the TeradataForum
Message Posted: Thu, 21 Feb 2002 @ 19:03:56 GMT
Subj: | | BTEQ Question |
|
From: | | Tony Howe |
I am running the following query via BTEQ against a table with 300+ million rows:
.SET RETCANCEL
.SET RETLIMIT 100
LOCKING CPCLMD.QCLMD002 FOR ACCESS
SELECT AQBICLS, ALLIAAA
FROM CPCLMD.QCLMD002;
.QUIT;
I only want the first 100 rows then end the query, thus the RETCANCEL statement, but the query still appears to be processing thru the
entire table before bring back my first 100. Isn't the RETCANCEL supposed to cancel the request once the RETLIMIT is reached?? Appears to
not be doing that. The SPOOL space being used goes up extrememly high, this is what tells me it is still reading thru the entire table.
Any ideas???
Thanks, Tony.
| |