Viewing 15 posts - 3,976 through 3,990 (of 4,085 total)
inuts (9/2/2009)
Can anyone guide with a logic for why ANSI_NULLS is ON by default?
Because it's the standard and it increases code portability. On top of that, it's easy...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 3, 2009 at 9:46 am
Dave Ballantyne (9/3/2009)
Also it will not detect if the initial receipts are missing.
Do you know the expected ranges to...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 3, 2009 at 9:07 am
The key that you are using for your month dimension represents both the month and the year even though the name column you are using shows only the month. ...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 3, 2009 at 8:06 am
It helps if you have a tally (or numbers) table, but it's easy enough to generate one on the fly. I've used the sys.columns table here, which should be...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 3, 2009 at 7:39 am
Here is what I believe is happening. Your FROM statement is doing an implicit join on the two tables. It is then calculating the original value for each...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 2, 2009 at 11:41 am
peterzeke (9/2/2009)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 2, 2009 at 10:55 am
Just to clarify. Shouldn't 4, 5, and 6 be in the same group, because the length of time between 4 and 5 is less than 60 and the length...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 2, 2009 at 9:25 am
Try this approach.
WITH UpdateRank AS (
SELECT RecordTS, ObjectID, Value, Row_Number() OVER ( PARTITION BY ObjectID ORDER BY RecordTS Desc) AS RowNum
FROM #mysourcetable
)
UPDATE...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 1, 2009 at 10:20 am
You DO NOT want to do a CROSS JOIN here. The problem with your original query is that a LEFT outer join will return all records from the LEFT...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 1, 2009 at 9:54 am
The Conditional Split Task can only access information in the Data Flow, so you need to do your lookup before you get to the conditional split. You'll also need...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 1, 2009 at 8:31 am
Without access to your cube, it's really hard to come up with the exact syntax, but you're going to need something like the following
Generate(
( x.CurrentMember, y.CurrentMember...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
August 30, 2009 at 11:54 am
You haven't really given enough information for us to help you. Do you want the max date for the entire cube, for "Y Name", or for the "My Name,...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
August 29, 2009 at 11:13 pm
Riz Gulamhussein (8/29/2009)
In your original posting, I'd say it's the SELECT that's failing even before the WHERE is applied.
Nope. SQL evaluates the WHERE clause before it evaluates the SELECT...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
August 29, 2009 at 12:36 pm
This was recently discussed in the following thread
http://www.sqlservercentral.com/Forums/Topic771804-338-1.aspx
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
August 28, 2009 at 4:40 pm
If you want a detailed answer to your question, read and follow the
Basically you want to use Max() and Group BY
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
August 28, 2009 at 4:00 pm
Viewing 15 posts - 3,976 through 3,990 (of 4,085 total)