0

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

ScottMcG
  • 3,867
  • 2
  • 12
  • 21

2 Answers2

1

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.

ScottMcG
  • 3,867
  • 2
  • 12
  • 21
0

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