Hi
How to get MAX YearMonth Value using SQL query in MS Access 2007. Pls note YearMonth is stored as Text
I'm executing below SQL and it's returning all the records from the table
Output is coming:
YearMonth
201201
201202
201203
201204
201205
I want only 201205 (YYYYMM).
Any idea how to achieve this?
How to get MAX YearMonth Value using SQL query in MS Access 2007. Pls note YearMonth is stored as Text
I'm executing below SQL and it's returning all the records from the table
Code:
Select MAX([YearMonth]) from tbl_Revenue_Assets_Split GROUP BY [YearMonth]
Output is coming:
YearMonth
201201
201202
201203
201204
201205
I want only 201205 (YYYYMM).
Any idea how to achieve this?