e106199 wrote:
the table has an index actually, i never mentioned it. there is academicyearid as my primary key.
If you are going to be hitting this table a lot, and you are worried about performance, it should also be indexed by the date columns or the isCurrent column (depending on which way you decide to go). Pragamatically speaking, if the table is small you may not need such indexes, but as a best practice you should have indexes that reflect the way you access the data (in addition to the primary key).
e106199 wrote:
just out of curiosity: what do you mean here "Your original question/problem is a perfect illustration of one of the difficulties you will see with denormalizing your data without really needing to."
I mean, this is one of the main problems with denormalized data--ensuring that it is always up to date, and that the updates are managed in such a way that the data can never be wrong when it's needed.
Phil