Вопрос

I can get week number using extract dow function in netezza for a date.

Select extract(Dow from date) from table

How can I get name of the weekday?

Это было полезно?

Решение

I haven't tried with a date datatype, but to get the day name from a timestamp you would use

select to_char(date, 'Day') from table

That should give results of Sunday, Monday, Tuesday, etc. Try it with your date column and please let us know if it works.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top