Hello,
I have a field that contains the date in this format 201109 integer
Each row includes cost and that field
I want to build sql that gets me the the amounts by year?
What ever this format actually is, it is far better to keep dates as date type data types. If this is yyyymm, then just use the first day of the month to make a valid date. You can show whatever you want on your forms/reports.