Viewing 15 posts - 1 through 15 (of 151 total)
Ninja's_RGR'us (4/16/2010)
April 16, 2010 at 12:31 pm
Did you expand the tally table?
; WITH
E1(N) AS ( --=== Create Ten 1's very quickly
...
April 16, 2010 at 9:15 am
I may be way off... but this seems like a simple binary problem to me.
DECLARE @People TABLE (Person VARCHAR(50))
INSERT INTO @People VALUES ('Ted')
INSERT INTO @People VALUES ('Tom')
INSERT INTO @People...
April 16, 2010 at 6:49 am
As far as a good blog / post to show why fixing the data at entry is the right way to do it, I am not sure that there is...
April 5, 2010 at 7:43 am
Just a thought, but NULL != NULL (unless ANSI_NULLS setting is OFF), therefore if the value in the column is null, this would return false.
December 8, 2009 at 9:52 am
Not 100% sure what you are after. What is the aggregation level of each item?
here are some quick thoughts, maybe I got lucky and one of these is what you...
December 8, 2009 at 9:47 am
Thanks Lynn. I have always used this method for only small data sets as I have noticed degradation, or at least a lack of improvement, when working with larger data...
November 20, 2009 at 2:08 pm
I would recommend that you create both versions, and do a side by side to see.
I personal do not like to use views unless for very specific functions, such...
November 20, 2009 at 12:40 pm
I don't believe that this is possible with reporting services... you can ignore parameters, but you cannot hide / enable one parameter based on another. If you have ever used...
September 1, 2009 at 7:55 am
Remove the astrik "*" from your sub query, and replace it with the field names (this is causing your problem).
August 13, 2009 at 6:03 am
ROW_NUMBER is a member of the RANKING FUNCTIONS available in 2005 & 2008. I am not 100% on the internals, but because SQL Server is building the rowset,...
August 12, 2009 at 6:32 am
Here is what I would recommend, instead:
SELECT *
FROM (SELECT ROW_NUMBER() OVER (PARTITION BY company ORDER BY company) r, *
FROM company) A
WHERE r = 1
If you have a flag that...
August 11, 2009 at 11:15 am
Here is a quick trick to get this... I am pretty sure it will work in SQL 7/2000:
DATEADD(yy, YEAR(GETDATE()) - 2000, '2000-02-01')
You can use this trick to get any date...
August 11, 2009 at 10:49 am
I would recommend ROW_NUMBER(). How can you determine, if a company has 50 rows, which one row you would like to see? Are they all the same for the columns...
August 4, 2009 at 9:24 am
That's probably your issue. It is literally trying to insert the character string "NULL" into the datetime field. You need to add a data conversion task to replace the string...
July 31, 2009 at 2:12 pm
Viewing 15 posts - 1 through 15 (of 151 total)