Viewing 15 posts - 2,881 through 2,895 (of 7,636 total)
katedgrt (4/15/2009)
RBarryYoung (4/14/2009)
... (Note: Wikipedia is using revisionist terminology that would instead call this "imperative programming", but I like the old terms better).
I haven't heard the term revisionist terminology before...
April 15, 2009 at 7:55 pm
Thomas (4/15/2009)
I stand corrected. Cross joining on syscolumns does appear to be a bit faster. Perhaps this is one loop based solution that now has a reasonable set-based solution.
Actually,...
April 15, 2009 at 7:29 pm
GermanDBA (4/15/2009)I know that if the series has the same quality that RBarryYoung produces here on a daily basis, it will be a wonderful primer for quite a few database...
April 15, 2009 at 7:24 pm
Thomas (4/15/2009)
Couple of very simple solutions.
First one is SQL 2005/2008 only, won't work in 2000:
create table dbo.Numbers (Number int primary key);
go
insert into dbo.Numbers (Number)
select top 10000 row_number() over (order by...
April 15, 2009 at 7:18 pm
Thomas (4/14/2009)
April 15, 2009 at 6:18 pm
Bruce W Cassidy (4/14/2009)
Thomas (4/14/2009)
April 15, 2009 at 6:01 pm
Thomas (4/14/2009)
April 15, 2009 at 5:52 pm
Thomas (4/14/2009)
April 15, 2009 at 5:42 pm
This is actually from Jacob Sebastiens Challenge #3, where the actual rules were: "Write a single query that can reverse the strings in this column without using the REVERSE() function".
April 15, 2009 at 1:53 pm
FYI, my example is recursive.
April 15, 2009 at 11:40 am
By the way, there are a lot of tweaks, tricks and improvements that can be applied to primes-listing algorithms, though only a few of them would be worth it for...
April 15, 2009 at 7:08 am
andrewd.smith (4/15/2009)
Barry,Yep, your improved set-based query is 55% faster than my WHILE loop for primes < 10000 on my machine.
--Andrew
Really? Huh, I learn something new every day!
April 15, 2009 at 7:02 am
Christian Buettner (4/15/2009)
Sorry I still don't get it. The ERRORFILE argument routes the errors to a text file, not to a table. Unless I misunderstand the documentation.
Sorry, Christian, I missed...
April 15, 2009 at 6:55 am
Thanks, Steve, this one might be close to the single day record. :hehe:
FYI, folks: I wll be offline until tomorrow evening, so don't think that I am ignoring you... :-).
April 14, 2009 at 11:03 pm
Bruce W Cassidy (4/14/2009)
[font="Verdana"]Didn't RBarryYoung's article start a little bun fight! It will be fun to watch. Brave, brave man.[/font]
Brave. Stupid. It's a fine line. ...
April 14, 2009 at 9:20 pm
Viewing 15 posts - 2,881 through 2,895 (of 7,636 total)