Sequencing in Teradata
问题 I would like to create a SELECT query that results in a view that is 30 fields long and 1 record thick. 2 records if we're counting the title. The specific part of the larger query in question is: WHERE CAST(EVENT_TIMESTAMP AS DATE) - CONTRACT_EFFECTIVE_DATE = 1 This produces the results desired - records where the days between EVENT_TIMESTAMP and CONTRACT_EFFECTIVE_DATE is 1. But I'd like this for 30 days. Something like: WHERE CAST(EVENT_TIMESTAMP AS DATE) - CONTRACT_EFFECTIVE_DATE = 1:30