Mark:
You can calculate the quarter from dates as ((CAST(EXTRACT(MONTH FROM fecha) AS BYTEINT)-1)/4)+1
BTEQ -- Enter your SQL request or BTEQ command:
SELECT DATE, ((CAST(EXTRACT(MONTH FROM DATE) AS BYTEINT)-1)/4)+1 QUARTER;
*** Query completed. One row found. 2 columns returned.
*** Total elapsed time was 1 second.
Current Date QUARTER
------------ -----------
2013-05-10 2
HTH.
Cheers.
Carlos.
Mark:
You can calculate the quarter from dates as ((CAST(EXTRACT(MONTH FROM fecha) AS BYTEINT)-1)/4)+1
BTEQ -- Enter your SQL request or BTEQ command:
SELECT DATE, ((CAST(EXTRACT(MONTH FROM DATE) AS BYTEINT)-1)/4)+1 QUARTER;
*** Query completed. One row found. 2 columns returned.
*** Total elapsed time was 1 second.
Current Date QUARTER
------------ -----------
2013-05-10 2
HTH.
Cheers.
Carlos.