Multiple choice technology web technology

What are the requirements of an effective dated table

  1. Define EFFDT

  2. Define EFF_STATUS

  3. Define EFFDT as key, in ascending order

  4. Define EFFDT as key, in descending order

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Effective dated tables require EFFDT as a key field in DESCENDING order. This ensures the most recent effective date (highest date value) appears first when querying, which is critical for time-based data retrieval. EFF_STATUS is often used but not strictly required. The key requirement is EFFDT in descending order as the first key field.

AI explanation

An effective-dated table tracks changes to data over time by keying rows with an effective date (EFFDT). For the current/most-recent row to be found efficiently (e.g., the first row matching as-of today), EFFDT must be part of the key and stored in descending order, so a simple lookup returns the latest applicable row first rather than requiring a scan through history in ascending order.