When selecting the maximum date of a column how do I obtain which quarter that date falls into without using a CASE
statement?
Teradata: Get quarter for specific date
teradata
teradata
When selecting the maximum date of a column how do I obtain which quarter that date falls into without using a CASE
statement?
Best Answer
Option 1: You can create a reference table (Month, Quarter) and you can extract month from your date column and join with it. (Joining this table won't affect performance as PI will be month)
Option 2: Use a logic as
(2+Month)/3
as in