Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:35:45+00:00 2026-06-17T20:35:45+00:00

While designing a table which have impact based on date (e.g. Currency Rate) which

  • 0

While designing a table which have impact based on date (e.g. Currency Rate) which one is better?

  1. Effective date (Find out max(Effective date) and get the current value)
  2. From Date – To Date condition (With greater than equals sysdate)

Rgrds.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:35:46+00:00Added an answer on June 17, 2026 at 8:35 pm

    It depends. You have a table representing changes to a particular entity, and you want to record when the entity changed, and when the change was replaced by a subsequent change.

    1. If you record just the Effective Date for each event, INSERTs are simpler: they don’t need to find the earlier record to update it. However, querying becomes more complex – you’ll need to run a window over the dataset to find which record is applicable at any one time, potentially resulting in poorer performance.

    Another downside is that this model is open-ended; you can’t record a currency as “permanently closed” (which you could do if you had an End date).

    2. If you record the Start and End dates for each event, queries are simpler: you only need to look at each row individually to know whether it is “current” as of any point in time or not. INSERTs, however, are slightly more complex – when you insert a new event, you have to update the earlier event to mark its End date.

    This model is closed-ended; you can put a End date on the final event and have no “open” record.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering which approach is better for designing databases? I have currently one
I have been trying different techniques while designing this application, which to me is
So, basically, I have a MySQL table called 'topics' and another one called 'replies',
Myself designing an app which uses GPS and Maps. I have created the UI
Alright, while designing a site, I came across a thought... I have a few
While designing an online shop database I had a problem with one part, could
There are two methods which I noticed while designing child tables Method 1 Example:
While designing a table my colleague here says that I should avoid identity column
while designing my user control, i encountered the following problem: i would like to
While designing a new WPF application I noticed exceptions not being thrown during data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.