In a number of cases, information within the data warehouse may be subject to privacy laws, which restrict access to data. The extreme case of this is where there must be a complete Chinese wall between different segments of the data warehouse. This situation occurs in the financial sector, where legislative controls may restrict access to data relevant to that organization.
For example, if you are designing a data warehouse for a retail banking institution, check that all the accounts belong to the same legal entity. It may be the case that accounts are owned by a number of retail banks wholly owned by a holding bank. Privacy laws could force you to totally prevent access to information that is not owned by the specific bank. Clearly, we may not be able to utilize database facilities to apply this degree of access control. If we place all account transactions in a single fact table, we may not be able to provide the appropriate level of access control. The database may be able only to restrict access to specified tables per user, as opposed to specified rows per user.
Data marts allow us to build complete Chinese walls by physically separating data segments within the data warehouse. The detailed data can then be removed from the data warehouse in order to avoid possible privacy problems. Within the data warehouse, we can retain aggregations that have been created at a level of detail where privacy laws no longer apply. They can be generated from the detailed data loaded as part of the load process, by updating existing summary tables. Alternatively, the aggregations can be generated from each individual data mart, and stored centrally.