Created
September 4, 2015 19:27
-
-
Save kissmygritts/efdcbbfd0691a9791dd9 to your computer and use it in GitHub Desktop.
Calculate sample year in SQL query. If month >= 6, SY = Current Year, Else SY = CY - 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SampleYear: IIf(Month([data_Capture].[CapDate])>=6,Year([data_Capture].[CapDate]),(Year([data_Capture].[CapDate])-1)) |
Author
kissmygritts
commented
Jun 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment