Pregunta de entrevista de Partners Group

How to check a database integrity with SQL?