Viewing 15 posts - 91 through 105 (of 136 total)
erikpoker (11/8/2011)
The job that will update our DM from the DW is not a full update.
It will only select a...
November 8, 2011 at 6:27 am
PaulB-TheOneAndOnly (11/8/2011)
erikpoker (11/8/2011)
Any suggestions?
Any particular reason not to use the actual FACT table as the center point of your datamart? After all related DIM tables are related to...
November 8, 2011 at 5:56 am
erikpoker (11/8/2011)
Do row exist? -> (NO) -> Add row
Do row exist? -> (YES) -> Is...
November 8, 2011 at 5:32 am
Regular expressions! They are perfect for things like this. You can't use them directly in SQL of course, but they work fine in the application or CLR. For example:...
November 8, 2011 at 5:10 am
I do have to ask, though, just how much data changes every 20 minutes. Is it enough to warrant doing an entire fresh load each time? You may want to...
November 8, 2011 at 4:58 am
A few ideas:
You could consider creating a view with the same name and schema as your current DM table has, that just passes through the data from the DM table...
November 8, 2011 at 4:53 am
If you want anything that happened since the start of the previous calendar day, rather than during the previous 24 hours, you'll need to do something like:
DATEADD(dd, -1, DATEDIFF(dd,0,joindate))
November 7, 2011 at 6:44 pm
Thanks for the catch Gail, not sure what happened with that URL tag! :unsure: (Although It might have had something to do with needing another cup of coffee...)
November 6, 2011 at 9:17 am
It sounds like your .shp file has invalid geometry in it. Where did you get the file? Do you have access to the person(s) who built the file, to see...
November 6, 2011 at 8:38 am
OK, I should have just directed you to this blog post by Gail Shaw to begin with, probably a lot easier to understand than my ramblings above and has good...
November 6, 2011 at 8:33 am
Well...the first thing I notice is that you're actually selecting from vw_PackageInfo; based on the naming convention I assume that this is a view, rather than a table. When SQL...
November 6, 2011 at 8:18 am
ranuganti (11/6/2011)
where
(a.column1 =@parmeter) or (a.column1 = right(@parmeter,22) or @parmeter =right(a.column1,22)
Without seeing the whole query and knowing something about the underlying table structure and data, it's hard to say...
November 6, 2011 at 7:44 am
That's great stuff Jeff! I love this forum, I keep learning better ways to do things. 🙂
November 6, 2011 at 7:28 am
@RDBMS I sure did, sorry! My bad!
November 5, 2011 at 10:33 am
Here's my first stab at it:
WITH BalanceDates
AS
(
SELECT CurMonthEnd, PrevMonthEnd, MIN(dt) AS FirstTranDate, MAX(dt) AS LastTranDate
FROM (
SELECT DATEADD(MM,DATEDIFF(MM, 0, dt), -1) AS PrevMonthEnd,
DATEADD(MM,DATEDIFF(MM, 0, dt)+1, -1) AS...
November 5, 2011 at 10:18 am
Viewing 15 posts - 91 through 105 (of 136 total)