Viewing 15 posts - 1 through 15 (of 22 total)
Also, datawarehouses, or more precisely, dimensional models are meant to solve aggregation requirements. OLTP requirements are far more complex. Not all database requirements can be met by the...
April 12, 2013 at 3:58 pm
Dimensional Models, particularly the SCDs) do not track more than one dimension of time per entity. This is the value of temporal relational modeling. Dimensional systems are typically...
April 12, 2013 at 3:56 pm
@sqlserver tweeted live in 10 minutes......12 minutes ago...
March 7, 2012 at 9:26 am
Change Data Capture and Change Tracking are useful for auditing, but these features are not the same thing as 'temporal modeling'. Among other things, they have no support for valid...
March 5, 2012 at 12:53 pm
I would strongly advise "against" using history or audit tables for several reasons. You will encounter performance issues, as well as complicate your ability to query your data. ...
March 5, 2012 at 12:14 pm
You may want to take a look at Microsoft Project REAL.
http://technet.microsoft.com/en-us/library/cc966416.aspx
You could add something like an ExecutionId to every table in your database. When a row is...
March 5, 2012 at 11:12 am
To follow up on the last post. Try the following, where the object_id column contains the object_id from sys.objects for the table being referenced.
IF EXISTS (SELECT * FROM...
March 5, 2012 at 11:09 am
Lynn,
We already have experience accomplishing answers to these questions. This post of more about inviting the participation of others to tell us about their experiences. Memebers of Adama Systems...
February 29, 2012 at 2:19 pm
If you wanted to eventually create a stored procedure that would find related requisitions, regardless of which column your target value might be in, would using a UNION statement fulfill...
February 28, 2012 at 1:24 pm
My apologies for miscommunicating. I'll ask it a different way. How does that recursion not satisfy your requirements?
February 28, 2012 at 10:59 am
My question is, what is the significance of having both "AB" and "BA"? I'm assuming from your original post that it is important to allow for that.
February 28, 2012 at 10:43 am
CONSTRAINT [PK_Relation] PRIMARY KEY CLUSTERED (requisitionID ASC))
However, for the second PK, it does not violate the key, since "B" is one unique record and "A" is the other, i.e., "BA"...
February 28, 2012 at 10:42 am
PRIMARY KEY CLUSTERED (requisitionID ASC, parentRequisitionId ASC))
The PK above means that AB and BA cannot both be records in that table.
February 28, 2012 at 10:39 am
The first PK makes a composite of two requisitions unique. So AB and BA are the same record, therefore violating the PK.
February 28, 2012 at 10:38 am
George,
In the first part of your post it sounds like you want to implement a simple recursive relationship, i.e., parent-child.
CREATE TABLE [Relation](
requisitionID [int] NOT NULL,
parentRequisitionId [int] NOT NULL,
CONSTRAINT [PK_Relation]
PRIMARY KEY...
February 28, 2012 at 9:58 am
Viewing 15 posts - 1 through 15 (of 22 total)