Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 08 Dec 2006 @ 14:19:08 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Partition elimination using substitution
 
From:   Michael Larkins

Hi James:

Without knowing for certain how your table is partitioned, it looks like you are partitioning on a timestamp and reading a date. You are doing some things in a questionable manner. However, you indicate that the table is partitioned on the day. You are comparing a timestamp with a date - they are different.

I have not tested these, but you can give them a try without much effort:

1. USING (d1 date) - change to USING d1 (date)

2. where extract(day from omniture_date_time) = extract(day from :d1)


Hope this helps,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023