Partners Group interview question

How to check a database integrity with SQL?