Created
April 30, 2017 22:14
-
-
Save cpoDesign/db70e413fbbba37d9bf4e8df714c72e4 to your computer and use it in GitHub Desktop.
SQL - Select distinct dates
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 | |
DISTINCT | |
CAST(FLOOR(CAST(Created as FLOAT)) as DateTime) as date | |
FROM | |
dbo.table | |
ORDER BY 1 ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment