Skip to content

Instantly share code, notes, and snippets.

@TRex22
Last active August 29, 2015 14:13
Show Gist options
  • Save TRex22/3f25ae3139863f2deb7c to your computer and use it in GitHub Desktop.
Save TRex22/3f25ae3139863f2deb7c to your computer and use it in GitHub Desktop.
Sql Server WHERE to get only transactions from today (date) from utc column
SELECT *
FROM db
WHERE DateRequested >= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment