Professional Documents
Culture Documents
Temporality and Database Access
Temporality and Database Access
Temporality and Database Access
A key criterion in assesing the quality of a database is the time. Temporal validity, namely, the
inadequancy of the database schema on the changes that occurs later in the system, represent the
nigthmare of every database administrator or application developer.
Ideally, when designing the database schema, is good to know the trend in legislation and the
procedures of the module/system used for developing the an application, so the structure should
be flexible enough for future adoption.
The VAT, for every line in the invoice, is calculated starting from the VAT column from
PRODUCTS, but this percent indicates the current percent of VAT for a particular product. Lets
assume that a super market opened in 1998 and very well automatized sells and books. The VAT
percent was changed a lot of times during the last years. Then, if in february 2005, ve want to
analize the books sells in the last five years, the values returned by the query are relevant?
Solving this essential problem involves storing the VAT percent from the moment of introducing
the invoice in the database. The first solution is showed in the figure 1.1
Figura 1.1