Hi all,
I have data in a table with few days of previous year data and this year data and it was working fine until December 2014 but when the year changed to 2015 my report started showing zero values .After investigating I found that there is some data from Dec 2014 with last three days of the year .
The SQL script is something like this.
SELECT MAX(MONTH(SLS_DATE)), MAX(YEAR(SLS_DATE)) FROM "SCHEMA"."TABLE NAME";
This script worked fine when Month was increasing with same year but when year increased by one and month decreased from 12 to 01 this script failed to show current year data instead it was showing this.
