What are the two types of integrity? physical integrity and logical integrity. To ensure integrity in both hierarchical and relational databases.