Last active
December 7, 2017 13:47
-
-
Save inog/f492bde950e68b4dd0d00b6d2665de33 to your computer and use it in GitHub Desktop.
select year and month from an datefield added 6 month
This file contains 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
SELECT kakan1,kakan2, kavjah, kavmon, kaerft, add_months(kaerft,6) addMonth, | |
YEAR(kaerft) created_Y, Month(kaerft) created_M , | |
YEAR(add_months(kaerft,6)) newYear, Month(add_months(kaerft,6)) newMonth | |
FROM verkauf.kalkN | |
order by kaerft DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment