Viewing 15 posts - 871 through 885 (of 1,246 total)
mishka-723908 (1/22/2016)
January 22, 2016 at 7:23 pm
I think this what you're after... Please note that this much easier on later editions of SQL server using the LAG/LEAD functions...
Some consumable test data...
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL...
January 22, 2016 at 6:38 pm
Orlando Colamatteo (1/19/2016)
This looks like a place where SQLCLR could come in handy. A function similar to MySQL's GREATEST is what we're looking for.
+1000...
Unfortunately a CLR doesn't get you...
January 19, 2016 at 7:40 pm
Eirikur Eiriksson (1/19/2016)
Jason A. Long (1/19/2016)
Eirikur Eiriksson (1/18/2016)
January 19, 2016 at 1:10 pm
As Mr. Magoo said... Thank you for testing Orlando. 🙂
January 19, 2016 at 10:17 am
Eirikur Eiriksson (1/18/2016)
January 19, 2016 at 7:01 am
Just for the fun of it... Here's a solution that uses a cast to binary & contaminate method...
Test data...
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL
DROP TABLE #temp;
CREATE TABLE #temp (
id...
January 18, 2016 at 9:17 pm
Quick question... Do you need to exclude holidays as well?
January 11, 2016 at 7:54 am
A little "Celko" isn't always a bad thing... I learned a great deal from him when I was first trying to learn.
Speaking from my own experience... Being told, in no...
January 11, 2016 at 7:30 am
rahulsahay123 (1/8/2016)
Values are like : 01092015
Now i want to convert this into yyyy-mm-dd ...
January 8, 2016 at 2:52 pm
Jeff Moden (1/7/2016)
January 7, 2016 at 8:40 pm
Jeff Moden (1/7/2016)
Jason A. Long (12/24/2015)
January 7, 2016 at 3:48 pm
Joe - Thanks for the feedback! Not many people provide feedback or even bother to say "thank you"... Just wanted to let you know that it's appreciated. 🙂
Since it wasn't...
January 7, 2016 at 6:52 am
joe-584802 (1/6/2016)
Does that mean I have to create a calendar table that's already pre-populated with dates?
Is there not a way that TSQL...
January 6, 2016 at 8:03 pm
Viewing 15 posts - 871 through 885 (of 1,246 total)