Viewing 15 posts - 46,591 through 46,605 (of 59,095 total)
I don't agree with returning a 0.00 for an invalid fraction, but it's not my code nor requirements. Replace the following section of code in my code and the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 10:02 pm
Jedi Master (12/15/2008)
Here's my final (?) function... Do you see any ways to improve it? It takes all sorts of inputs into consideration, even if you enter "a1/2"...
Simple test says...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:50 pm
Jedi Master (12/15/2008)
Here's my final (?) function... Do you see any ways to improve it? It takes all sorts of inputs into consideration, even if you enter "a1/2"...
Thought you didn't...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:44 pm
Thanks for the feedback... the question now is do you really need the individual pieces?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:42 pm
Soooooo.... no pooping... no walking away... don'cha ever get constipated? 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:38 pm
Lynn Pettis (12/15/2008)
Jeff Moden (12/15/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:30 pm
Not ever, it sounds like. Well done.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:22 pm
Just to be sure... you're a heck of a better man than me, Lynn... I looked at your posts and you were quite the gentleman in explaining the facts of...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:19 pm
Oh yeah... almost forgot... plan for it now... if you leave the long term archive as daily tables, you'll have a hell of a time doing a search for a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:11 pm
Interesting idea... and, if you really do that, there is no reason for a purge process. Just create the new table on a daily basis and have a script...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:09 pm
Lynn Pettis (12/15/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 9:05 pm
I thought this was a fun problem to solve and also gave the opportunity to demo both the power and readability of "Cascading CTE's".
Here's the function...
CREATE FUNCTION dbo.ConvertFractionToDecimal
/**********************************************************************************************************************
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 8:54 pm
Damned nice try, Peter... thought you had it, but not quite...
SET STATISTICS TIME ON
SELECT '5' , dbo.fnResolveFractionals('5') ...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 8:43 pm
Heh... here's my twit for the week... gotta love the arrogance...
http://www.sqlservercentral.com/Forums/Topic619172-1291-1.aspx#619380
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 6:37 pm
sognibene (12/15/2008)
Thanks, Jeff. I was wondering what I was going to have for dinner tonight.
Heh... mmmmmm... p-o-r-k c-h-o-p-s... gaaaahhhh... 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
December 15, 2008 at 6:20 pm
Viewing 15 posts - 46,591 through 46,605 (of 59,095 total)