J
JP
I have a table with a field name period
Data is in yyyymm format
200712
200711
200809
200807
I need to extract the maximum year for years that have a full year of data.
In the sample data above,
2008 data only goes to September, while 2007 data goes to December, therefor
I need the query to return '2007' in this instance.
Data is in yyyymm format
200712
200711
200809
200807
I need to extract the maximum year for years that have a full year of data.
In the sample data above,
2008 data only goes to September, while 2007 data goes to December, therefor
I need the query to return '2007' in this instance.