difference between extract and date_part

1.2k Views Asked by At

What is the exact difference between date_part() and extract functions in netezza?

2

There are 2 best solutions below

0
AudioBubble On

difference between date_part('week', ...) and extract(week from ...) not only but also from a performance point of view. I read extract is standard and date_part is not. Backwards compatibility maybe justifies the existence of date_part

0
ScottMcG On

In Netezza date_part and extract are equivalent functions. They provide different syntax for improved SQL compatibility, but are otherwise the same.

You can see this in the documentation here.