Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top