Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top