Viewing 5 posts - 1 through 5 (of 5 total)
Never would have thought to solve this kind of problem this way. Superb solution! 🙂
March 30, 2020 at 8:16 am
June 5, 2018 at 1:42 am
Totally agree here. But what would happen if we take out the GETUTCDATE() into a variable and change the call of DATEDIFF with it? What would be the impact?
June 4, 2018 at 8:49 am
Great job, much appreciated!. Although, a small correction to your script.
In the first part, with @BirthDate and @Today declared as DATETIME, the TallyGenerator for years should be called starting...
March 28, 2017 at 3:33 am
Useful tsql found in 70-431 documentation and modified to meet my needs.
SELECT
OrderId
, SiteId
, ClientId
, DocumentDate
, TotalAmount
, SUM(TotalAmount) OVER(PARTITION BY ClientId
ORDER BY DocumentDate, OrderId, SiteId
ROWS BETWEEN UNBOUNDED PRECEDING
AND...
December 5, 2013 at 7:31 am
Viewing 5 posts - 1 through 5 (of 5 total)