EXTRACT SQL function: Why we love it
There are so many different date functions in SQL—you have DATEDIFF, DATEADD, DATE_PART, and DATE_TRUNC to name a few. They all have their different use cases and understanding how and when they should be used is a SQL fundamental to get down. Are any of those as easy to use as the EXTRACT function? Well, that debate is for another time…
In this post, we’re going to give a deep dive into the EXTRACT function, how it works, and why we use it.