28 July 2018        Add to Favorites   Report

Teradata find the First Day of the Year

Here's a way to determine the first day of a year in Teradata SQL

Solution:

ADD_MONTHS(dt, -(EXTRACT(MONTH FROM dt) - 1)) + (1 - EXTRACT(DAY FROM dt))



Read great educational content like this and a lot more ! Create my free account now 🎁

Copied