Viewing 15 posts - 1 through 15 (of 53 total)
If considering doing something similar in production you might want to ensure your 'words' source doesn't include things like the F and C bombs 🙂
May 1, 2018 at 3:04 am
Thanks John. I realised about 2 minutes after posting. It's code I have come across due to the error today and isn't how I'd have done it. My approach would...
April 13, 2018 at 4:07 am
PLease ignore question - i had missed the obvious and have figured it out.
April 13, 2018 at 3:57 am
I can't speak for anyone else, but my complain about the point was done with my tongue firmly in my cheek! 😉
October 16, 2014 at 6:18 am
select cast(case datepart(dw,Loaddate)
when 1 then dateadd(ww,-0,Loaddate-6)
when 2 then dateadd(ww,-0,Loaddate)
when 3 then dateadd(ww,-0,Loaddate-1)
when 4 then dateadd(ww,-0,Loaddate-2)
when 5 then dateadd(ww,-0,Loaddate-3)
when 6 then dateadd(ww,-0,Loaddate-4)
when 7 then dateadd(ww,-0,Loaddate-5)
end as...
December 6, 2012 at 6:06 am
Thanks everyone. I've found a solution. I've added Row_Numbers partitioned by Model, and then used CASE and the rownumbers to return the Features into columns - easy when...
August 15, 2012 at 12:32 am
< sound of penny dropping >
Drew, you've given me the solution - concatenate the Features (with a delimiter) in one column.
As the purpose is essentially to populate an excel...
August 14, 2012 at 8:21 am
. . . . oh, and BTW, thanks to everyone on SSC - I couldn't have done it without the articles & help that I'ver picked up on the forums!
January 26, 2012 at 8:27 am
That's it! thanks.
I've had to shuttle the data into tempdb on one of our 2005 servers though to get this to work.
Do you know if this is even possible...
January 23, 2012 at 8:55 am
Thanks for the reply, but that doesn't quite work. Try this, and you'll see what I mean:
create table #t (Data VARCHAR(30))
INSERT #t (Data)
VALUES ('abcssdef'),
('abc[ss]def'),
('abc[70ps]def')
select * from #t
where data...
January 23, 2012 at 8:36 am
This is a fairly poor Featured Script. Isn't the point to shed some light on the methodology rather than simply posting script and result. And where's the DDL...
January 13, 2012 at 12:26 am
Viewing 15 posts - 1 through 15 (of 53 total)