Hi guys,
I tried this query in my SelectCommand:
SelectCommand="SELECT DISTINCT YEAR(RECEIPT_START_DATE) FROM [LOADING_TABLE] WHERE [RECEIPT_START_DATE] IS NOT NULL"
But, for some reason, there is an error with the YEAR() function. Is there any other way to do this?
Thanks in advance!