Hi there,
I have the SCD table and created data model for it. The structure of the table is something like:
col1, col2, ..., col_start_date, col_end_date. If the column col_end_date == '2099.12.31' then the record is active and if it is <> '2099.12.31' then it is closed at some date.
There is no problem to select all active records at the present time by using filter == '2099.12.31'. However I couldn't find proper way how to see the snapshot for the specific date.
If I would write SQL query I would use such condition:
WHERE col_start_date <= SOME_SPECIFIC_DATE AND col_end_date > SOME_SPECIFIC_DATE
Can I do it somehow?
I have the SCD table and created data model for it. The structure of the table is something like:
col1, col2, ..., col_start_date, col_end_date. If the column col_end_date == '2099.12.31' then the record is active and if it is <> '2099.12.31' then it is closed at some date.
There is no problem to select all active records at the present time by using filter == '2099.12.31'. However I couldn't find proper way how to see the snapshot for the specific date.
If I would write SQL query I would use such condition:
WHERE col_start_date <= SOME_SPECIFIC_DATE AND col_end_date > SOME_SPECIFIC_DATE
Can I do it somehow?