Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top