Oracle SQL: selecting date field without day (Only Month and Year) Oracle SQL: selecting date field without day (Only Month and Year) oracle oracle

Oracle SQL: selecting date field without day (Only Month and Year)


Use the TO_CHAR function for this:

TO_CHAR(ak.date, 'YYYY.MM') as Datum


Another way:

TRUNC(ak.date, 'MM')

Advantage of this is that date sorting and date arithmetic still work.