What is the exact difference between date_part() and extract functions in netezza?
difference between extract and date_part
1.2k views Asked by prashanth chougale At
2
There are 2 answers
0
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.
difference between
date_part('week', ...)andextract(week from ...)not only but also from a performance point of view. I readextractis standard anddate_partis not. Backwards compatibility maybe justifies the existence ofdate_part