Archives of the TeradataForum
Message Posted: Wed, 09 Mar 2005 @ 20:27:48 GMT
| Subj: || || Use of Indexes in Teradata |
| From: || || Srikanth Goli |
Does Teradata use indexes if only leading index columns are specified? For exampls, assume a sales table that has Unique Primary Index on
SaleDate, StoreID, and Trand_ID and that is large, over a bollion rows. Now one of my queries needs to delete all the data for a specific
SaleDate. Does the delete still use the index or is it a table scan? If it is a table scan, then should I have a secondary non-unique index on the
SaleDate?Would the sec. index be used? What are my other options?
Thanks in advance..