I would like to take a moment to explain the following problem I am facing:I do have a table named Equity which contains the company name and the current PE Ratio. The PE Ratio will be updated daily or weekly based on the wish of user through a web application in ASP.NET. When the process runs for many years, there will be many updates happening to the same record.ProblemOur problem is to get the historical PE Ratio values, so that we can find out the maximum and minimum values for decision making.High Cost SolutionOne of the solutions we might prefer is that while updating the record from our web application, keep a copy of the record and insert it into another table. This involves changing the associated business logic layer in C# or changing the stored procedure. I would say this is more time consuming and is a lot of code we have to write to manage the new table if schema changes are involved.Simple SolutionWe can use database triggers to achieve the same. The solution steps are as follows. Believe me, this will take only 5 minutes to do.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: