[Solved] ROW_IS_CURRENT
3 posters
Page 1 of 1
[Solved] ROW_IS_CURRENT
Hi,
Why do we need a ROW_IS_CURRENT column in a dimension.
Thanks.
Why do we need a ROW_IS_CURRENT column in a dimension.
Thanks.
Last edited by exhortae on Wed Jan 30, 2013 5:25 am; edited 1 time in total
exhortae- Posts : 30
Join date : 2010-08-01
Re: [Solved] ROW_IS_CURRENT
To easily identify the current row in a type 2 SCD.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Re: [Solved] ROW_IS_CURRENT
BoxesAndLines wrote:To easily identify the current row in a type 2 SCD.
For what purpose ?
* In a lookup to easily retrieve the primary key in a dimension ?
* When building reports ?
* ... ?
exhortae- Posts : 30
Join date : 2010-08-01
Re: [Solved] ROW_IS_CURRENT
I think if you understood what a Type 2 SCD was in more detail, you would see the need for ROW_IS_CURRENT.
* In a lookup to easily retrieve the primary key in a dimension ? YES
* When building reports ? YES
Basically, anytime you need to separate the current record from the change record history.
* In a lookup to easily retrieve the primary key in a dimension ? YES
* When building reports ? YES
Basically, anytime you need to separate the current record from the change record history.
TheNJDevil- Posts : 68
Join date : 2011-03-01
Re: [Solved] ROW_IS_CURRENT
Assume I have a credit status code in my type 2 customer dimension. Now, tell me the current credit status of all customers.
Select * from customer_dim where current_row_ind = 'Y'
or
Select * from customer_dim where row_end_dt = '12/31/9999'
Two ways to skin the cat.
Select * from customer_dim where current_row_ind = 'Y'
or
Select * from customer_dim where row_end_dt = '12/31/9999'
Two ways to skin the cat.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Re: [Solved] ROW_IS_CURRENT
BoxesAndLines wrote:
Select * from customer_dim where row_end_dt = '12/31/9999'
I always used this one, I tought row_is_current might bring something else.
Thanks
exhortae- Posts : 30
Join date : 2010-08-01
Similar topics
» [solved]An explanation of sentence: Any descriptive attribute that takes on a single value in the presence of a fact table
» Tracking Support Tickets: accumulating snapshot and transaction grain fact (a presentation question)
» data model for 2 fact tables (Header / Detail scenario)
» [SOLVED] SCD2 Dimension and Fact Table
» [Solved] Ragged Hierarchy, Bridge Table and SCD2
» Tracking Support Tickets: accumulating snapshot and transaction grain fact (a presentation question)
» data model for 2 fact tables (Header / Detail scenario)
» [SOLVED] SCD2 Dimension and Fact Table
» [Solved] Ragged Hierarchy, Bridge Table and SCD2
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|