2) Code should always demonstrate the intent, directly and logically. (Corollary: Never, ever, use tricky or clever code)
4) the Intention of this organisation is to select
TotalCredit
by way of a list of things are the organisation considers to be Credits, not by way of DEA{Cr/Dr}.
5) That leaves the
XactTypeCode_Ext
open to be more than {Cr|Dr}, eg. bank systems are more elaborate, it may be {Er} for Internal Error Correction which is handled properly by virtue of DEA in AccountTransaction
, and shows up in all SQL queries and other Views, but not in Account_Current_V
.
The above is a very quick demonstration of the Power of, and the Proper Use of Views, over a fully Normalised set of Tables,, not a full tutorial on that subject.
« first day (8 days earlier) ← previous day