Viewing 15 posts - 1,771 through 1,785 (of 6,486 total)
If the duplicates are not appropriate - why not remove them prior to averaging? You're in 2005 so a CTE preceding your average should also help drop the duplicates...
August 16, 2009 at 8:50 am
Casting the number to a decimal with 2 digits after the decimal point FIRST is going to instroduce a lot of error. You really should be calculating the average...
August 16, 2009 at 8:43 am
(and lest it sounds like I was reversing myself)...
The main reason I fight them so strongly is that no matter how they start out - sooner or later, you get...
August 15, 2009 at 2:43 pm
I would have recommended using XML structures (which would allow you to maintain SOME structure and access various indexing strategies) - but you're using a SQL Server 2000 example, which...
August 15, 2009 at 2:40 pm
Grant Fritchey (8/14/2009)
Kit G (8/13/2009)
Bob Hovious (8/13/2009)
j tk th sq o/t t2 n xrf th dmv frm thr 4 all sign f
Does one even dare ask for a translation?...
August 15, 2009 at 1:17 pm
EAV is...awful. Besides the data quality aspect you've just run into, it also prevents you from using just about any of the other integrity rules as well (e.g....
August 14, 2009 at 12:48 pm
David Portas (8/14/2009)
Matt Miller (8/14/2009)I copied it right out of his post, ran it, and got no error - what am I missing here?
Whether you get an error or not...
August 14, 2009 at 12:26 pm
cs_troyk (8/14/2009)
Matt Miller (8/14/2009)
David Portas (8/14/2009)
August 14, 2009 at 12:02 pm
haichells (8/14/2009)
I have a requirement where my SP will have some n number of Insert/Update statements. Some of the statements may throw error "Cannot Insert duplicate rows" due to...
August 14, 2009 at 11:59 am
David Portas (8/14/2009)
August 14, 2009 at 11:03 am
They don't NEED to, but they probably should be. That will help keep away from "orphans".
August 14, 2009 at 10:46 am
David Portas (8/14/2009)
Using a function as part of a constraint is a procedural solution rather than a declarative...
August 14, 2009 at 10:42 am
Gift Peddie (8/14/2009)
I think you may have missed the where clause in my LEFT JOIN example. All three of these queries will return the same result set. ie Customer records...
August 14, 2009 at 9:22 am
one more thing - if your online table is big, but indexed based on that date - you might have a better shot at a good index usage with:
declare @g...
August 13, 2009 at 10:44 am
Viewing 15 posts - 1,771 through 1,785 (of 6,486 total)