28 July 2018 · dan-irving ·       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))


dan-irving

posted on 28 July 2018

Read great educational content like this and a lot more !

Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too

Copied