Viewing 15 posts - 76 through 90 (of 283 total)
Shaun McGuile (7/25/2008)
Tom that would work,but...Data Warehouse model = denormalized data for speed.
Your solution is normalized.
So denormalize it... in the warehouse.
In production use, it is normalized and thus versioning presents...
July 25, 2008 at 10:02 am
MAIL_INTERESTS is just an intersection table to implement a many-to-many relationship between MAIL and INTERESTS tables. The combination of the two fields is a key. It generally makes no sense...
July 21, 2008 at 2:52 pm
Shaun McGuile (7/18/2008)
http://en.wikipedia.org/wiki/Slowly_changing_dimension%5B/quote%5D
Hmm, if this is the current state of the art, maybe I'm onto something. I have implemented versioning as just another normalization step...
July 18, 2008 at 12:39 pm
It looks like what you are trying to do is versioning. That is, keep old values intact for historical or audit purposes as you make modification to the data. This...
July 16, 2008 at 3:11 am
xsaycocie (7/14/2008)
ALTER PROCEDURE dbo.Proc (@PARAM4 nvarchar )
There are two things wrong here. First, the procedure's name is "proc" which is not going to be allowed. However, I assume that...
July 16, 2008 at 2:59 am
One trick I have used before is to create an integer column called OrderBy. I then populate it with values that will give me the desired order from the query....
July 16, 2008 at 2:43 am
The only problem with using DateDiff like that is that if the date being examined is 2007-12-31 and "today" is 2008-01-01, the age will be one. That may not be...
July 16, 2008 at 2:31 am
mailsar (7/14/2008)
July 16, 2008 at 2:16 am
Kimberly.Hahn (7/15/2008)
The values for the rowcnt in sysindexes is not always accurate...
Yes, that's true. If you'll look in the comments of the function I submitted on the previous page, you'll...
July 15, 2008 at 11:31 am
If you just want the one row of one entity that was in effect as of the date/time specified, the query is quite simple:
select top 1 *
from table
where Key-field =...
July 10, 2008 at 1:10 am
Could be homework I suppose, but strange it is not. It can take a couple of minutes for "Count(*)" to return a result for a Very Large Table, say 10...
July 9, 2008 at 3:28 pm
Here's a function I wrote partially based on something posted, iirc, here.
/*
Author: Tomm Carr
Date: 2008-02-22
This function will return the number of rows in a table, the same result
as...
July 9, 2008 at 2:31 pm
Yes, you do want to get the db in 3nf as much as possible. Taking it to higher levels are not necessary except in extremely specialized circumstances (which, in over...
July 9, 2008 at 2:10 pm
This works wonders for me:
alter table dbo.CallCost
add Seconds as DateDiff( ss, 0, '1900-01-01 ' + Duration );
Now you have a computed column which very quickly, and behind the scenes, converts...
July 7, 2008 at 3:29 pm
GilaMonster (7/3/2008)
... It should be useful, depends on the queries though.
Absolutely. Next time provide the actual query you are trying to optimize. Depending on what you want to read from...
July 6, 2008 at 10:48 pm
Viewing 15 posts - 76 through 90 (of 283 total)