How do I get the max year (not the max date) from a teradata dataset?