SQLServerCentral » Latest topics
How to find the year to date value for a given date
I want to write a query to calculate the year to date value for a given date:
Example: If the given orderdate is 9/18/2015,
I want the year to date range to be between 1/1/15 - 9/18/15.
I am writing a query where it is filtered by OrderD
Example: If the given orderdate is 9/18/2015,
I want the year to date range to be between 1/1/15 - 9/18/15.
I am writing a query where it is filtered by OrderD
No comments:
Post a Comment