This should be doable, but how can I extract the day of the week from a field containing data in date format with Netezza SQL? I can write the following query:
SELECT date_part('day',a.report_dt) as report_dt FROM table as a
but that gives me the day of the month.
thanks for any help
1=Sunday, 7=Saturday
. That's unlike java where week starts from Monday. – Esqueda