|
Archives of the TeradataForumMessage Posted: Fri, 21 Oct 2005 @ 09:04:21 GMT
Have you looked at the explains? If you explain the second query, you will see that it performs an aggregation step. If there are lots of repeated rows in col3, col4, this step will eliminate them. Thus the "size" of the derived table b will be smaller in the second query. If so, this will translate into a smaller spool requirement.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||