Viewing 15 posts - 9,736 through 9,750 (of 59,099 total)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2019 at 7:02 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2019 at 6:53 am
--Jeff Moden
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Change is inevitable... Change for the better is not.
March 7, 2019 at 6:39 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2019 at 3:00 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2019 at 2:09 pm
This is Part 2 of Slow in the Application, Fast in SSMS. How...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2019 at 9:42 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 5, 2019 at 12:56 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 5, 2019 at 12:19 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2019 at 10:47 am
The following formula will do it for you.
(DATEPART(dy,DATEADD(dd,-53684,DATEDIFF(dd,-53684,@SomeDate)/7*7+6))-1)/7+1
1. It finds the first Sunday on or previous to the given date (-53684 is...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2019 at 10:37 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2019 at 6:59 am
It's pretty simple to find such overlapping ranges. Have a gander at the following link to learn how... just change the point of reference from months to hours.
http://www.sqlservercentral.com/articles/T-SQL/105968/
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2019 at 6:01 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2019 at 5:58 am
I have to admit to being strongly confused because your test data doesn't match your desired output.
For example, here's your desired output... I've pointed to two rows for...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2019 at 8:20 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2019 at 5:15 pm
Viewing 15 posts - 9,736 through 9,750 (of 59,099 total)