Viewing 15 posts - 9,736 through 9,750 (of 59,091 total)
--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
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2019 at 10:30 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 1, 2019 at 8:01 am
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2019 at 7:43 am
I am by no means a Windows Ninja but it seems to me that the Domain Controller would be aware of all machines on the network. Perhaps interrogating the Domain...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2019 at 7:33 am
Appreciate warnings from Jeff about...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2019 at 4:25 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2019 at 1:44 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2019 at 1:43 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2019 at 1:40 pm
Viewing 15 posts - 9,736 through 9,750 (of 59,091 total)