To illustrate how documentation standards can be applied to data warehouse objects, here are some examples of good and bad documentation for tables, columns, and views in a data warehouse that stores sales data from different regions and channels. For instance, a good table documentation would include the name of the table (e.g. sales_fact), the columns (e.g. sales_id, region_code, channel_code, product_code, quantity, price, and date), the relationships (e.g. sales_id is the primary key and region_code references region_dim), constraints (e.g. sales_id is unique and not null), transformations (e.g. quantity and price are converted to the same unit and currency). In contrast, bad table documentation would be too vague (e.g. “tbl1 is a table that has some data”). Similarly, a good column documentation would include the name of the column (e.g. region_code), its purpose (e.g. it stores the code of the region where the sales transaction occurred), its type (e.g. char(2)), and its values (e.g. NA for North America). On the other hand, bad column documentation would be too general (e.g “r is a column in tbl1 that has some data”). Finally, a good view documentation would include its name (e.g. sales_by_region_channel), how it is created (e.g by joining sales_fact, region_dim, and channel_dim), its columns (e.g region_name, channel_name, and sales_amount), filters (e.g date between 2020-01-01 and 2020-12-31) and calculations (e.g sales_amount is the sum of quantity multiplied by price). In contrast, bad view documentation would be too brief (e.g “v1 is a view that has some data”).