How to convert Date-time into Date using Netezza
问题 I am doing some calculation but my calculation is off because my date field is showing the time-stamp and i only want to use as Date only when i am doing the calculation. How can i just ignore the minutes and just use the date when doing the calculation? Here is what i have: SELECT EF.DSCH_TS, CASE WHEN EXTRACT (DAY FROM EF.DSCH_TS - EF.ADMT_TS)>=0 THEN 'GroupA' END AS CAL FROM MainTable EF; 回答1: You may want to consider rewriting your case statement to return an interval. This will allow for