TERADATA Query for entire month


This Content is from Stack Overflow. Question asked by King

I wanted to know if there was a way to extract data from a date column pertaining to an entire month.

WHERE TABLE.DATE_ BETWEEN DATE ’01-02-2022′ AND DATE ‘ 28-02-2022’

So in the above query(wrote it here as an example so hope i didnt make any typo mistake) im searching for all dates from the 1st to the 28th of february but wanted to know if there was a more elegant method as to select a month match eg. 02-2022.

I hope my question was detailed enough.

Thanks in advance,


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?